-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid blocking ServiceWorker initiated requests for Chrome MV3 (#1544)
We already avoid blocking ServiceWorker initiated requests in the MV2 extension, since each time we enabled the blocking of those we saw major website breakage. In the future, we'd like to start blocking those requests again, but we'll have to do so carefully. Anyway, it's important that request blocking is consistent between MV2 and MV3 builds of the extension. So for now, let's also avoid blocking ServiceWorker initiated requests for Chrome MV3 builds too. Note: The way we do this, is to ignore requests with a tabId of -1 (aka requests not associated with a tab). This could also lead to other requests being ignored, but since that's consistent with the MV2 code-path[1] it seems the right approach. 1 - https://github.com/duckduckgo/duckduckgo-privacy-extension/blob/92222c85b04894a7f411cd844e2612b7a7d7c923/shared/js/background/before-request.es6.js#L85
- Loading branch information
Showing
6 changed files
with
130 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters