-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Chrome extension to Manifest Version 3
This concludes the migration work to Manifest version 3. Most of the necessary changes have been made in other commits since 2022. Because Manifest Version 3 support requires Chrome 88+, the minimum_chrome_version has been set to 88 for clarity, and minimum_opera_version to 74 (which matches Chrome's 88). The Firefox version is still on Manifest Version 2 since Firefox has not announced deprecation of Manifest Version 2. Note: `optional_host_permissions` support was introduced in Chrome 102 (crbug.com/1265064). In Chrome 88 - 101, the extension can only view Chrome extension sources (with host_permissions) and Firefox add-ons (with CORS from AMO). Not extensions from other sources. As a bonugs, another long-standing bug has been fixed: previously, if Chrome was started with --incognito, then the extension may fail to initialized because the event page would not wake up. Service workers always wake up if it has not been activated before for the specific incognito profile. Because of this, the extension will now initialize more reliably in incognito windows.
- Loading branch information
Showing
7 changed files
with
44 additions
and
29 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use strict"; | ||
/* globals importScripts */ | ||
|
||
importScripts( | ||
"storage-sync-polyfill.js", | ||
"chrome-platform-info.js", | ||
"cws_pattern.js", | ||
"background.js", | ||
"bg-contextmenu.js" | ||
); |