Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSK support for FB CTL update #760

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

BSK support for FB CTL update #760

wants to merge 10 commits into from

Conversation

ladamski
Copy link
Collaborator

@ladamski ladamski commented Apr 4, 2024

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/72649045549333/1205105078450227/f
iOS PR: TBD (hopefully N/A)
macOS PR: https://github.com/duckduckgo/macos-browser/pull/2162
What kind of version bump will this require?: Major/Minor/Patch

Optional:

Tech Design URL: https://app.asana.com/0/1201720254973470/1206422390411022/f
CC:

Description:
Updates BSK to support separate clickToLoad rule list, with associated surrogates changes. CTL is disabled for iOS

Steps to test this PR:
1.
1.

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16
  • macOS 10.15
  • macOS 11
  • macOS 12

Internal references:

Software Engineering Expectations
Technical Design Template

@ladamski ladamski changed the title BSK support for FB CTL update (WIP) BSK support for FB CTL update Apr 17, 2024
@ladamski ladamski marked this pull request as ready for review April 17, 2024 21:45
@@ -221,7 +221,7 @@ fileprivate extension KnownTracker.Rule {
private extension KnownTracker.ActionType {

func toTrackerResolverRuleAction() -> TrackerResolver.RuleAction {
self == .block ? .blockRequest : .allowRequest
self == .block || self == .blockCtlFB ? .blockRequest : .allowRequest
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about line 209 above? We might also need to address the custom action here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what is this comment about, perhaps this is some old conversation you had with Bartek?

Copy link
Contributor

@jaceklyp jaceklyp May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw there is inconsistency in naming, you often use CTL and in this case there is Ctl, please make sure we use it capitalized everywhere (unless the var starts with ctl, in such case use all lowercased)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah please disregard that comment, that's for a previous discussion/rev of the PR.

For the naming issue, this was just landed in duckduckgo/TrackerRadarKit#19, not sure the effort is worth the squeeze here?

If we do want to address it, maybe it makes more sense to follow the more conventional approach of camelCasing acronyms for all instances of CTL (i.e any acronym of 3+ chars). That would better match the rest of our code I think? Or I can also update the TRK PR, just LMK which way you prefer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We got a rule (that is obviously not followed everywhere) https://github.com/duckduckgo/swift?tab=readme-ov-file#capitalize-acronyms - so it would be awesome to fix it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaceklyp cool, fixed! FWIW I don't have access to that repo (/swift), any reason it can't be public? Seems like something that would benefit from broad visibility.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

github-actions bot commented May 1, 2024

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label May 1, 2024
Copy link

github-actions bot commented May 9, 2024

This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.

@github-actions github-actions bot closed this May 9, 2024
@ladamski ladamski reopened this May 9, 2024
@github-actions github-actions bot removed the stale label May 10, 2024
Copy link

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label May 17, 2024
@github-actions github-actions bot removed the stale label May 18, 2024
@@ -221,7 +221,7 @@ fileprivate extension KnownTracker.Rule {
private extension KnownTracker.ActionType {

func toTrackerResolverRuleAction() -> TrackerResolver.RuleAction {
self == .block ? .blockRequest : .allowRequest
self == .block || self == .blockCtlFB ? .blockRequest : .allowRequest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what is this comment about, perhaps this is some old conversation you had with Bartek?

@@ -221,7 +221,7 @@ fileprivate extension KnownTracker.Rule {
private extension KnownTracker.ActionType {

func toTrackerResolverRuleAction() -> TrackerResolver.RuleAction {
self == .block ? .blockRequest : .allowRequest
self == .block || self == .blockCtlFB ? .blockRequest : .allowRequest
Copy link
Contributor

@jaceklyp jaceklyp May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw there is inconsistency in naming, you often use CTL and in this case there is Ctl, please make sure we use it capitalized everywhere (unless the var starts with ctl, in such case use all lowercased)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants