-
Notifications
You must be signed in to change notification settings - Fork 426
Chrome: use declarativeNetRequestWithHostAccess instead of webRequestBlocking #3615
Copy link
Copy link
Closed
Labels
mv3: transitionForwards-compatible changes we can make anytime before the upgrade to Manifest V3Forwards-compatible changes we can make anytime before the upgrade to Manifest V3platform: chromeRelated to Chrome / ChromeOSRelated to Chrome / ChromeOSscope: coreRelated to the core script/extension workingsRelated to the core script/extension workingsscope: upstreamRelated to something we depend on (like Scratch, a library, or the browser)Related to something we depend on (like Scratch, a library, or the browser)type: enhancementNew feature for the projectNew feature for the project
Milestone
Metadata
Metadata
Assignees
Labels
mv3: transitionForwards-compatible changes we can make anytime before the upgrade to Manifest V3Forwards-compatible changes we can make anytime before the upgrade to Manifest V3platform: chromeRelated to Chrome / ChromeOSRelated to Chrome / ChromeOSscope: coreRelated to the core script/extension workingsRelated to the core script/extension workingsscope: upstreamRelated to something we depend on (like Scratch, a library, or the browser)Related to something we depend on (like Scratch, a library, or the browser)type: enhancementNew feature for the projectNew feature for the project
EDIT: outdated
The new
declarativeNetRequestWithHostAccesspermission will ship in Chrome stable on November 16 2021.Around three months later (February 2022), we'll remove the
webRequestBlockingpermission from our Chrome manifest.json and start usingdeclarativeNetRequestWithHostAccessinstead.Users running Chrome 95 and below will still be able to use Scratch Addons by then, except some scratch-messaging and scratch-notifier features (more detail below).
Firefox will continue to use
webRequestBlocking, possibly forever.We currently use blocking webRequest for:
?sarefererURLs (used to delete/post comments and clear message count from background/popup contexts)RemovingRemoved in v1.24.3 through Remove unnecessary background/handle-cookie.js #4237 and no bug reports received about unexpected logouts yet.Set-Cookieheaders fromhttps://scratch.mit.edu/site-api/comments/*responses which unexpectedly log users out.Moving away from webRequestBlocking is a good first step to be ready for manifest v3, and may also possibly speed up our Chrome Web Store review times.