Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Malicious Site Protection - Update BSK Ref #3750

Merged

Conversation

alessandroboron
Copy link
Contributor

@alessandroboron alessandroboron commented Jan 21, 2025

Task/Issue URL: https://app.asana.com/0/1206329551987282/1209158005098852/f
Tech Design URL: https://app.asana.com/0/1206329551987282/1209133564224796/f

Description:

Integrate Malicious Site Protection changes as part of the iOS work.
During iOS Ship Review we changed copy title for settings. I will double check if these changes needs to be integrated in this PR.

Optional E2E tests:

  • [] Run PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Steps to test this PR:

  1. Ensure CI is green

Before Merging

  • Update BSK Reference.
  • Merge String Localizations (TBC).

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@alessandroboron alessandroboron force-pushed the alessandro/malicious-site-protection-ios-updates branch 4 times, most recently from 5d0f3fc to c8a91b7 Compare January 29, 2025 00:24
alessandroboron added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 29, 2025
**Required**:
Task/Issue URL:  https://app.asana.com/0/72649045549333/1209158005098852
iOS PR: duckduckgo/iOS#3837
macOS PR: duckduckgo/macos-browser#3750
What kind of version bump will this require?: Minor 

**Optional**:
Tech Design URL:
https://app.asana.com/0/1206329551987282/1209133564224796/f

**Description**:
This PR exposes a method to fetch Malicious Site Protection Datasets and store last update dates for datasets.
@alessandroboron alessandroboron force-pushed the alessandro/malicious-site-protection-ios-updates branch 2 times, most recently from f23b284 to 21b8492 Compare January 29, 2025 05:34
alessandroboron added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 31, 2025
**Required**:
Task/Issue URL:  https://app.asana.com/0/72649045549333/1209158005098852
iOS PR: duckduckgo/iOS#3837
macOS PR: duckduckgo/macos-browser#3750
What kind of version bump will this require?: Minor 

**Optional**:
Tech Design URL:
https://app.asana.com/0/1206329551987282/1209133564224796/f

**Description**:
This PR exposes a method to fetch Malicious Site Protection Datasets and store last update dates for datasets.
@alessandroboron alessandroboron force-pushed the alessandro/malicious-site-protection-ios-updates branch from 21b8492 to abb942c Compare January 31, 2025 04:03
"revision" : "20b24085284b27a7c9a5257efa77b2f1cf59f893",
"version" : "232.1.1"
"branch" : "alessandro/malicious-site-protection-ios",
"revision" : "fb7c8ec55d29e5845db903b4404e7b00754b5a87"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update BSK ref, c-s-s and Privacy dashboard refs before merging it in

alessandroboron added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Feb 4, 2025
**Required**:
Task/Issue URL:  https://app.asana.com/0/72649045549333/1209158005098852
iOS PR: duckduckgo/iOS#3837
macOS PR: duckduckgo/macos-browser#3750
What kind of version bump will this require?: Minor 

**Optional**:
Tech Design URL:
https://app.asana.com/0/1206329551987282/1209133564224796/f

**Description**:
This PR exposes a method to fetch Malicious Site Protection Datasets and store last update dates for datasets.
@alessandroboron alessandroboron force-pushed the alessandro/malicious-site-protection-ios-updates branch from cbc61aa to 923f511 Compare February 4, 2025 03:28
@@ -149,7 +149,8 @@ public class MaliciousSiteProtectionManager: MaliciousSiteDetecting {
.visitSite,
.iframeLoaded,
.settingToggled,
.matchesApiTimeout:
.matchesApiTimeout,
.failedToDownloadInitialDataSets:
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to make sure: this used to send a Debug pixel when it was fired directly from BSK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought that DebugEvent was useful when passing the error since it would add the domain and code automatically. Since we were sending this Pixel for a specific error I thought it wasn’t necessary to use DebugEvent. I found out that in PixelKit we check if the the event is a DebugEvent and append debug prefix. I’ve updated it.

else if let debugEvent = event as? DebugEvent {
   // Is a Debug event not already prefixed
      return "m_mac_debug_\(debugEvent.name)”
}

alessandroboron added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Feb 5, 2025
**Required**:
Task/Issue URL:  https://app.asana.com/0/72649045549333/1209158005098852
iOS PR: duckduckgo/iOS#3837
macOS PR: duckduckgo/macos-browser#3750
What kind of version bump will this require?: Minor 

**Optional**:
Tech Design URL:
https://app.asana.com/0/1206329551987282/1209133564224796/f

**Description**:
This PR exposes a method to fetch Malicious Site Protection Datasets and store last update dates for datasets.
@alessandroboron alessandroboron force-pushed the alessandro/malicious-site-protection-ios-updates branch from 8c5faa3 to 6681658 Compare February 6, 2025 00:02
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Messages
📖

You seem to be updating localized strings. Make sure that you request translations and include translated strings before you ship your change. See Localization Guidelines for more information.

Generated by 🚫 dangerJS against 4cbaa98

Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

New translation changes look good 👍

alessandroboron added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Feb 6, 2025
**Required**:
Task/Issue URL:
https://app.asana.com/0/1206329551987282/1209233394358451/f
iOS PR: duckduckgo/iOS#3901
macOS PR:  duckduckgo/macos-browser#3750
What kind of version bump will this require?: Major

**Optional**:

Tech Design URL:
https://app.asana.com/0/481882893211075/1207273224076495/f

**Description**:
Add Malicious Site Protection feature to iOS.
@alessandroboron alessandroboron merged commit 9bb0049 into main Feb 6, 2025
23 of 24 checks passed
@alessandroboron alessandroboron deleted the alessandro/malicious-site-protection-ios-updates branch February 6, 2025 07:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants