permissions.request()

Read More at MDN Docs

Safe to Use

permissions.request() is not safe to use.

It’s supported by 54% of global browsers.

Browsers

ChromeDec 11, 2008v1.0.0
26%100%
100% of Chrome users are running a supported version.
SafariSep 16, 2020v14.0.0
5%93%
There are no users of Safari running a supported version.
EdgeJan 15, 2020v79.0.0
5%100%
There are no users of Edge running a supported version.
FirefoxAug 8, 2017v55.0.0
2%98%
There are no users of Firefox running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Dec 11, 2008 v1.0.0
26%100%
100% of Chrome users are running a supported version.
Dec 11, 2008 – Latest
v1.0.0+
26%100%

Full Support

Edge
Jan 15, 2020 v79.0.0
5%100%
There are no users of Edge running a supported version.
Jan 15, 2020 – Latest
v79.0.0+
5%100%

Full Support

Firefox
Aug 8, 2017 v55.0.0
2%98%
There are no users of Firefox running a supported version.
Aug 8, 2017 – Latest
v55.0.0+
2%98%

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).

Firefox for Android
Jun 28, 2022 v102.0.0
Firefox for Android supports this feature.
Jun 28, 2022 – Latest
v102.0.0+

Full Support

Opera
Unknown v1.0.0
1%100%
100% of Opera users are running a supported version.
Unknown
v1.0.0+
1%100%

Full Support

Safari
Sep 16, 2020 v14.0.0
5%93%
There are no users of Safari running a supported version.
Sep 16, 2020 – Latest
v14.0.0+
5%93%

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.

Safari on iOS
Sep 20, 2021 v15.0.0
15%93%
There are no users of Safari on iOS running a supported version.
Sep 20, 2021 – Latest
v15.0.0+
15%93%

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.

Contribute