Skip to content

Commit

Permalink
Merge branch 'release/0.30.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 4, 2022
2 parents 939b704 + 84cc183 commit 12f7fde
Show file tree
Hide file tree
Showing 30 changed files with 306 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
cp $REVIEW_PP_PATH $RELEASE_PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
- name: Register SSH keys for submodules access
uses: webfactory/ssh-agent@v0.5.4
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY_FIND_IN_PAGE }}
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MARKETING_VERSION = 0.30.5
MARKETING_VERSION = 0.30.6

26 changes: 17 additions & 9 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
14505A08256084EF00272CC6 /* UserAgent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14505A07256084EF00272CC6 /* UserAgent.swift */; };
1456D6E124EFCBC300775049 /* TabBarCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1456D6E024EFCBC300775049 /* TabBarCollectionView.swift */; };
14D9B8FB24F7E089000D4D13 /* AddressBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14D9B8F924F7E089000D4D13 /* AddressBarViewController.swift */; };
1D77921828FDC54C00BE0210 /* FaviconReferenceCacheTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D77921728FDC54C00BE0210 /* FaviconReferenceCacheTests.swift */; };
1D77921A28FDC79800BE0210 /* FaviconStoringMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D77921928FDC79800BE0210 /* FaviconStoringMock.swift */; };
1E25269C28F8741A00E44DFA /* Common in Frameworks */ = {isa = PBXBuildFile; productRef = 1E25269B28F8741A00E44DFA /* Common */; };
3106AD76287F000600159FE5 /* CookieConsentUserPermissionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3106AD75287F000600159FE5 /* CookieConsentUserPermissionViewController.swift */; };
311B262728E73E0A00FD181A /* TabShadowConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 311B262628E73E0A00FD181A /* TabShadowConfig.swift */; };
Expand Down Expand Up @@ -593,7 +595,6 @@
AAECA42024EEA4AC00EFA63A /* IndexPathExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAECA41F24EEA4AC00EFA63A /* IndexPathExtension.swift */; };
AAEEC6A927088ADB008445F7 /* FireCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAEEC6A827088ADB008445F7 /* FireCoordinator.swift */; };
AAEF6BC8276A081C0024DCF4 /* FaviconSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAEF6BC7276A081C0024DCF4 /* FaviconSelector.swift */; };
AAFCB37F25E545D400859DD4 /* PublisherExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAFCB37E25E545D400859DD4 /* PublisherExtension.swift */; };
AAFE068326C7082D005434CC /* WebKitVersionProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAFE068226C7082D005434CC /* WebKitVersionProvider.swift */; };
B31055C427A1BA1D001AC618 /* AutoconsentUserScript.swift in Sources */ = {isa = PBXBuildFile; fileRef = B31055BC27A1BA1D001AC618 /* AutoconsentUserScript.swift */; };
B31055C627A1BA1D001AC618 /* userscript.js in Resources */ = {isa = PBXBuildFile; fileRef = B31055BE27A1BA1D001AC618 /* userscript.js */; };
Expand Down Expand Up @@ -621,7 +622,6 @@
B610F2EC27AA8F9400FCEBE9 /* ContentBlockerRulesManagerMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = B610F2E727AA397100FCEBE9 /* ContentBlockerRulesManagerMock.swift */; };
B61EF3EC266F91E700B4D78F /* WKWebView+Download.swift in Sources */ = {isa = PBXBuildFile; fileRef = B61EF3EB266F91E700B4D78F /* WKWebView+Download.swift */; };
B61EF3F1266F922200B4D78F /* WKProcessPool+DownloadDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B61EF3F0266F922200B4D78F /* WKProcessPool+DownloadDelegate.swift */; };
B61F015525EDD5A700ABB5A3 /* UserContentController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B61F015425EDD5A700ABB5A3 /* UserContentController.swift */; };
B62EB47C25BAD3BB005745C6 /* WKWebViewPrivateMethodsAvailabilityTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62EB47B25BAD3BB005745C6 /* WKWebViewPrivateMethodsAvailabilityTests.swift */; };
B630793526731BC400DCEE41 /* URLSuggestedFilenameTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8553FF51257523760029327F /* URLSuggestedFilenameTests.swift */; };
B630793A26731F2600DCEE41 /* FileDownloadManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B630793926731F2600DCEE41 /* FileDownloadManagerTests.swift */; };
Expand Down Expand Up @@ -845,6 +845,8 @@
14505A07256084EF00272CC6 /* UserAgent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserAgent.swift; sourceTree = "<group>"; };
1456D6E024EFCBC300775049 /* TabBarCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarCollectionView.swift; sourceTree = "<group>"; };
14D9B8F924F7E089000D4D13 /* AddressBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddressBarViewController.swift; sourceTree = "<group>"; };
1D77921728FDC54C00BE0210 /* FaviconReferenceCacheTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FaviconReferenceCacheTests.swift; sourceTree = "<group>"; };
1D77921928FDC79800BE0210 /* FaviconStoringMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FaviconStoringMock.swift; sourceTree = "<group>"; };
3106AD75287F000600159FE5 /* CookieConsentUserPermissionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CookieConsentUserPermissionViewController.swift; sourceTree = "<group>"; };
311B262628E73E0A00FD181A /* TabShadowConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabShadowConfig.swift; sourceTree = "<group>"; };
313AEDA0287CAD1D00E1E8F4 /* CookieConsentUserPermissionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CookieConsentUserPermissionView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1434,7 +1436,6 @@
AAECA41F24EEA4AC00EFA63A /* IndexPathExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IndexPathExtension.swift; sourceTree = "<group>"; };
AAEEC6A827088ADB008445F7 /* FireCoordinator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FireCoordinator.swift; sourceTree = "<group>"; };
AAEF6BC7276A081C0024DCF4 /* FaviconSelector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FaviconSelector.swift; sourceTree = "<group>"; };
AAFCB37E25E545D400859DD4 /* PublisherExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublisherExtension.swift; sourceTree = "<group>"; };
AAFE068226C7082D005434CC /* WebKitVersionProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebKitVersionProvider.swift; sourceTree = "<group>"; };
B31055BC27A1BA1D001AC618 /* AutoconsentUserScript.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutoconsentUserScript.swift; sourceTree = "<group>"; };
B31055BE27A1BA1D001AC618 /* userscript.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = userscript.js; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1463,7 +1464,6 @@
B610F2E727AA397100FCEBE9 /* ContentBlockerRulesManagerMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentBlockerRulesManagerMock.swift; sourceTree = "<group>"; };
B61EF3EB266F91E700B4D78F /* WKWebView+Download.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WKWebView+Download.swift"; sourceTree = "<group>"; };
B61EF3F0266F922200B4D78F /* WKProcessPool+DownloadDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WKProcessPool+DownloadDelegate.swift"; sourceTree = "<group>"; };
B61F015425EDD5A700ABB5A3 /* UserContentController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserContentController.swift; sourceTree = "<group>"; };
B62EB47B25BAD3BB005745C6 /* WKWebViewPrivateMethodsAvailabilityTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WKWebViewPrivateMethodsAvailabilityTests.swift; sourceTree = "<group>"; };
B630793926731F2600DCEE41 /* FileDownloadManagerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FileDownloadManagerTests.swift; sourceTree = "<group>"; };
B630794126731F5400DCEE41 /* WKDownloadMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WKDownloadMock.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1712,6 +1712,15 @@
path = ViewModel;
sourceTree = "<group>";
};
1D77921628FDC51B00BE0210 /* Favicons */ = {
isa = PBXGroup;
children = (
1D77921728FDC54C00BE0210 /* FaviconReferenceCacheTests.swift */,
1D77921928FDC79800BE0210 /* FaviconStoringMock.swift */,
);
path = Favicons;
sourceTree = "<group>";
};
313AED9F287CAC5A00E1E8F4 /* UI */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -2941,6 +2950,7 @@
4B723E0226B0003E00E14D75 /* Data Export */,
4B723DFE26B0003E00E14D75 /* Data Import */,
4BBC16A327C488B900E00A38 /* Device Authentication */,
1D77921628FDC51B00BE0210 /* Favicons */,
8553FF50257523630029327F /* File Download */,
AA9C361D25518AAB004B1BA3 /* Fire */,
4B02199725E063DE00ED7DEA /* Fireproofing */,
Expand Down Expand Up @@ -3298,7 +3308,6 @@
85AC3AEE25D5CE9800C7D2AA /* UserScripts.swift */,
F4A6198B283CFFBB007F2080 /* ContentScopeFeatureFlagging.swift */,
983DFB2428B67036006B7E34 /* UserContentUpdating.swift */,
B61F015425EDD5A700ABB5A3 /* UserContentController.swift */,
);
path = Model;
sourceTree = "<group>";
Expand Down Expand Up @@ -3690,7 +3699,6 @@
B637273C26CCF0C200C8CB02 /* OptionalExtension.swift */,
B684592125C93BE000DC17B6 /* Publisher.asVoid.swift */,
B68C2FB127706E6A00BF2C7D /* ProcessExtension.swift */,
AAFCB37E25E545D400859DD4 /* PublisherExtension.swift */,
B684592625C93C0500DC17B6 /* Publishers.NestedObjectChanges.swift */,
B6AAAC3D26048F690029438D /* RandomAccessCollectionExtension.swift */,
4BB88B4925B7B690006F6B06 /* SequenceExtensions.swift */,
Expand Down Expand Up @@ -4628,7 +4636,6 @@
4BE6547F271FCD4D008D1D63 /* PasswordManagementCreditCardModel.swift in Sources */,
31B4AF532901A4F20013585E /* NSEventExtension.swift in Sources */,
85707F26276A335700DC0649 /* Onboarding.swift in Sources */,
AAFCB37F25E545D400859DD4 /* PublisherExtension.swift in Sources */,
B68C92C1274E3EF4002AC6B0 /* PopUpWindow.swift in Sources */,
4B17E2D4287380390003BD39 /* PersistentAppInterfaceSettings.swift in Sources */,
AA5FA6A0275F948900DCE9C9 /* Favicons.xcdatamodeld in Sources */,
Expand Down Expand Up @@ -5021,7 +5028,6 @@
4B677442255DBEEA00025BD8 /* Database.swift in Sources */,
4BE5336E286915A10019DBFD /* HorizontallyCenteredLayout.swift in Sources */,
4B92928B26670D1700AD2C21 /* BookmarksOutlineView.swift in Sources */,
B61F015525EDD5A700ABB5A3 /* UserContentController.swift in Sources */,
4BF01C00272AE74C00884A61 /* CountryList.swift in Sources */,
37CD54CC27F2FDD100F1F7B9 /* PreferencesSection.swift in Sources */,
FD23FD2D2886A81D007F6985 /* AutoconsentManagement.swift in Sources */,
Expand Down Expand Up @@ -5079,7 +5085,9 @@
37CD54B727F1B28A00F1F7B9 /* DefaultBrowserPreferencesTests.swift in Sources */,
B65349AA265CF45000DCC645 /* DispatchQueueExtensionsTests.swift in Sources */,
858A798A26A9B35E00A75A42 /* PasswordManagementItemModelTests.swift in Sources */,
1D77921828FDC54C00BE0210 /* FaviconReferenceCacheTests.swift in Sources */,
FD23FD2B28816606007F6985 /* AutoconsentMessageProtocolTests.swift in Sources */,
1D77921A28FDC79800BE0210 /* FaviconStoringMock.swift in Sources */,
B6DA441E2616C84600DD1EC2 /* PixelStoreMock.swift in Sources */,
4B434690285ED7A100177407 /* BookmarksBarViewModelTests.swift in Sources */,
B6BBF1702744CDE1004F850E /* CoreDataStoreTests.swift in Sources */,
Expand Down Expand Up @@ -6293,7 +6301,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 33.0.0;
version = 34.0.0;
};
};
AA06B6B52672AF8100F541C5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,18 @@
ReferencedContainer = "container:DuckDuckGo.xcodeproj">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "AutoconsentMessageProtocolTests/testEval()">
</Test>
<Test
Identifier = "CBRCompileTimeReporterTests">
</Test>
<Test
Identifier = "EncryptionKeyStoreTests">
</Test>
<Test
Identifier = "PixelStoreTests/testPixelStoreMigration()">
</Test>
<Test
Identifier = "PixelTests/testWhenErrorPixelIsFiredThenParametersAdded()">
</Test>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Back.pdf",
"filename" : "NavigationBack.pdf",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Forward.pdf",
"filename" : "NavigationForward.pdf",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Back.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Forward.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
13 changes: 6 additions & 7 deletions DuckDuckGo/Browser Tab/Model/Tab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,6 @@ final class Tab: NSObject, Identifiable, ObservableObject {
return true
}

var cbrCompletionTokensPublisher: AnyPublisher<[ContentBlockerRulesManager.CompletionToken], Never> {
userContentController.$contentBlockingAssets.compactMap { $0?.completionTokens }.eraseToAnyPublisher()
}

private static let debugEvents = EventMapping<AMPProtectionDebugEvents> { event, _, _, _ in
switch event {
case .ampBlockingRulesCompilationFailed:
Expand Down Expand Up @@ -895,7 +891,9 @@ final class Tab: NSObject, Identifiable, ObservableObject {

extension Tab: UserContentControllerDelegate {

func userContentController(_ userContentController: UserContentController, didInstallUserScripts userScripts: UserScripts) {
func userContentController(_ userContentController: UserContentController, didInstallContentRuleLists contentRuleLists: [String: WKContentRuleList], userScripts: UserScriptsProvider, updateEvent: ContentBlockerRulesManager.UpdateEvent) {
guard let userScripts = userScripts as? UserScripts else { fatalError("Unexpected UserScripts") }

userScripts.debugScript.instrumentation = instrumentation
userScripts.faviconScript.delegate = self
userScripts.contextMenuScript.delegate = self
Expand Down Expand Up @@ -1089,7 +1087,8 @@ extension Tab: AdClickAttributionLogicDelegate {
func attributionLogic(_ logic: AdClickAttributionLogic,
didRequestRuleApplication rules: ContentBlockerRulesManager.Rules?,
forVendor vendor: String?) {
let contentBlockerRulesScript = userContentController.contentBlockingAssets?.userScripts.contentBlockerRulesScript
let contentBlockerRulesScript = (userContentController.contentBlockingAssets?.userScripts as? UserScripts)?
.contentBlockerRulesScript
let attributedTempListName = AdClickAttributionRulesProvider.Constants.attributedTempRuleListName

guard ContentBlocking.shared.privacyConfigurationManager.privacyConfig.isEnabled(featureKey: .contentBlocking)
Expand Down Expand Up @@ -1233,7 +1232,7 @@ extension Tab: WKNavigationDelegate {

// This check needs to happen before GPC checks. Otherwise the navigation type may be rewritten to `.other`
// which would skip link rewrites.
if navigationAction.navigationType == .linkActivated {
if navigationAction.navigationType != .backForward {
let navigationActionPolicy = await linkProtection
.requestTrackingLinkRewrite(
initiatingURL: webView.url,
Expand Down
Loading

0 comments on commit 12f7fde

Please sign in to comment.