Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Incorrect warning message after submitting

77 views
Skip to first unread message

Wim Devos

unread,
Nov 22, 2024, 5:21:50 AM11/22/24
to Chromium Extensions
Hi 

When I submit my extension I get the following warning:

Because of the following issue, your extension may require an in-depth review:
**- Broad Host Permissions**
Instead of requesting broad host permissions, consider using the activeTab permission, or specify the sites that your extension needs access to. Both options are more secure than allowing full access to an indeterminate number of sites, and they may help minimize review times.
The [activeTab](https://developer.chrome.com/extensions/activeTab) permission allows access to a tab in response to an explicit user gesture.
{
...
"permissions": ["activeTab"]
}
If your extension only needs to run on certain sites, simply specify those sites in the extension manifest:
{
...
"permissions": ["https://example.com/*"]
}


But permissions does not allow a url, only a limited set of values is allowed
(https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions).

This is confusing, and took some time to realise this warning is just wrong.
Additionally I actually limit the usage to 1 url in host_permissions, so I don't understand
why I get this error in the first place.

Thanks for clarifying / fixing.

Best regards
Wim

Zach Warneke

unread,
Nov 22, 2024, 4:46:06 PM11/22/24
to Chromium Extensions, Wim Devos
Hi,

Thanks for pointing this out! The warning message hasn't been updated to reflect MV3 changes yet. We'll update it soon.

Note that this warning will also be shown if one of your content_scripts uses a broad match pattern (e.g. "<all_urls>"), which I think might've been what triggered it in this case? Let me know if that helps.

Zach

Wim Devos

unread,
Nov 25, 2024, 4:09:29 AM11/25/24
to Chromium Extensions, Zach Warneke, Wim Devos
Hi Zach

I indeed had 1 script file having the <all_urls> match pattern, so I had that fixed too. So that helps! 

Thank you! Have a great week.

Wim
Reply all
Reply to author
Forward
0 new messages