permissions.request()
Read More at MDN DocsSafe to Use
permissions.request()
is not safe to use.
It’s supported by 54% of global browsers.
Browsers
Version Breakdown
Full Support
Full Support
Full Support
It's not possible to request permissions from a sidebar document (bug 1493396).
Before version 75, permissions cannot be requested from popup panels (see bug 1432083).
Before version 61, permissions cannot be requested from options pages embedded in about:addons
(see bug 1382953).
Full Support
Full Support
Full Support
Requesting <all_urls>
or *://*/*
origins will grant permission to request specific origin patterns and automatically prompt the user for access to any visited website via the extension's access popover in the toolbar.
The user will be prompted again for permissions that have been previously granted and then removed.
Supported permissions will be granted without prompting the user. Only specific origin patterns will prompt the user.
Full Support
Requesting <all_urls>
or *://*/*
origins will grant permission to request specific origin patterns and automatically prompt the user for access to any visited website via the extension's banner.
The user will be prompted again for permissions that have been previously granted and then removed.
Supported permissions will be granted without prompting the user. Only specific origin patterns will prompt the user.