Skip to content

Commit

Permalink
BSK to 156.0.0, add stub for CTL (#2955)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1171671347221384/1205105078450227/f
Tech Design URL:
CC:

Description:
Update to BSK 156.0.0, add stub for surrogatesUserScriptShouldProcessCTLTrackers()
  • Loading branch information
ladamski authored Jun 14, 2024
1 parent b5ca9e0 commit 8e40ce9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9778,7 +9778,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 155.0.0;
version = 156.0.0;
};
};
9F8FE9472BAE50E50071E372 /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/DuckDuckGo/BrowserServicesKit",
"state" : {
"revision" : "ddb0eb213c081a5d6d3f78f4df5dff11bc974218",
"version" : "155.0.0"
"revision" : "e9e239fe5dfeab87dcacbf5a31c8f555623a4ce2",
"version" : "156.0.0"
}
},
{
Expand Down Expand Up @@ -185,8 +185,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/TrackerRadarKit",
"state" : {
"revision" : "c01e6a59d000356b58ec77053e0a99d538be56a5",
"version" : "2.1.1"
"revision" : "1403e17eeeb8493b92fb9d11eb8c846bb9776581",
"version" : "2.1.2"
}
},
{
Expand Down
4 changes: 4 additions & 0 deletions DuckDuckGo/TabViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,10 @@ extension TabViewController: SurrogatesUserScriptDelegate {
return privacyInfo?.isFor(self.url) ?? false
}

func surrogatesUserScriptShouldProcessCTLTrackers(_ script: SurrogatesUserScript) -> Bool {
false
}

func surrogatesUserScript(_ script: SurrogatesUserScript,
detectedTracker tracker: DetectedRequest,
withSurrogate host: String) {
Expand Down
4 changes: 4 additions & 0 deletions DuckDuckGoTests/WebViewTestHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class MockSurrogatesUserScriptDelegate: NSObject, SurrogatesUserScriptDelegate {
func surrogatesUserScriptShouldProcessTrackers(_ script: SurrogatesUserScript) -> Bool {
return shouldProcessTrackers
}

func surrogatesUserScriptShouldProcessCTLTrackers(_ script: SurrogatesUserScript) -> Bool {
false
}

func surrogatesUserScript(_ script: SurrogatesUserScript,
detectedTracker tracker: DetectedRequest,
Expand Down

0 comments on commit 8e40ce9

Please sign in to comment.