Questions about permissions and host_permissions in new manifest v3

188 views
Skip to first unread message

Leo C.

unread,
May 4, 2023, 2:33:41 AM5/4/23
to Chromium Extensions
I have some questions about permissions in new manifest v3.

1. Do specifying host permissions in "permissions" instead of "host_permissions" raises an error causing install failure?

{
...
    "permissions": [
         "tabs",
         "cookies",
         "<all_urls>",
      ],
"host_permissions": [
                       ]
...
}

2. Do specifying host permissions in "permissions" get ignored?

{
...
    "permissions": [
         "tabs",
         "cookies",
         "https://example.com/*",
      ],
"host_permissions": [
         "https://hostexample.com/*"
    ]

...
}


Oliver Dunk

unread,
May 4, 2023, 4:49:26 AM5/4/23
to Leo C., Chromium Extensions
Hi Leo,

This will raise a warning at install time: "Permission '<all_urls>' is unknown or URL pattern is malformed."

While this should mean the permission is ignored and the extension continues to function, you should definitely avoid putting URLs in the permissions array.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/8f910eef-685a-4473-ab1a-f4d034e12d37n%40chromium.org.

Leo C.

unread,
May 4, 2023, 2:22:55 PM5/4/23
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Leo C.
Thanks!
Reply all
Reply to author
Forward
0 new messages