Manifest V3: webRequestBlocking and ExtensionInstallForcelist

2,789 views
Skip to first unread message

Don Schmitt

unread,
Dec 6, 2019, 2:53:35 PM12/6/19
to chromium-extensions
I'm trying to understand the comment about being allowed to use webRequestBlocking for extensions installed with ExtensionInstallForcelist (here:  https://developer.chrome.com/extensions/migrating_to_manifest_v3#api_checklist ).

Our extension  listing is installed by users directly from the web store AND using the ExtensionInstallForcelist policy.

Does the comment on that page mean:

1) The extension can still request the webRequestBlocking permission but that feature will only work at runtime if the extension is installed with ExtensionInstallForcelist?

- or -

2) An extension requesting webRequestBlocking will fail to install at all if it is not installed with ExtensionInstallForcelist? 

I think pretty clearly number (1) would be preferable.  Because if it's number (2) then we'd have to create and maintain a separate listing and manage communication with users about which one is which (ugh!).

Aaron Quade

unread,
Dec 9, 2019, 9:10:50 AM12/9/19
to Chromium Extensions
I think that mapping it directly to the ExtensionInstallForcelist is going to make development and testing painful. It really needs to be mapped to a separate policy or managed in a different way. There are plenty of use cases where the extension needs to work as expected without being force installed. I've created a bug try and get some more traction.

Simeon Vincent

unread,
Dec 12, 2019, 12:34:54 AM12/12/19
to Chromium Extensions
My understanding is that #1 is correct. "The extension can still request the webRequestBlocking permission but that feature will only work at runtime if the extension is installed with ExtensionInstallForcelist".

I think that mapping it directly to the ExtensionInstallForcelist is going to make development and testing painful.

I believe this is already the case with enterprise-focused APIs such as chrome.enterprise.deviceAttributes. Thanks for the bug. I'm hoping this will get some good conversations started.

Simeon - @dotproto
Extensions Developer Advocate
Message has been deleted

KARISHMA SINGH

unread,
Jan 3, 2020, 3:46:24 AM1/3/20
to Chromium Extensions
By referring the https://developer.chrome.com/extensions/migrating_to_manifest_v3#api_checklist, I believe that #1 (Extension can still request the webRequestBlocking permission) should work if the extension is installed with ExtensionInstallForcelist while using manifest v3. And we should be able to test/validate the manifest v3 changes in Chrome Canary Channel. I have installed the Chrome Canary channel on Chromebook.

To test the webRequest API with manifest v3, I need to publish the extension. So that I can force install the extension to a Chromebook from google's admin console. I am getting an error while publishing the extension with manifest version "3": "Upload Failed. Manifest version 3 is unsupported." 

My question is: How to test/validate the webRequest API with manifest v3 ?
Reply all
Reply to author
Forward
0 new messages