extension.isAllowedIncognitoAccess()

Retrieves the state of the extension's access to Incognito-mode (as determined by the user-controlled 'Allowed in Incognito' checkbox.

Syntax

browser.extension.isAllowedIncognitoAccess(
  function(isAllowedAccess) {...} // function
)

Parameters

callback
function. The function is passed the following arguments:
isAllowedAccess
boolean. True if the extension has access to Incognito mode, false otherwise.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?48.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

This API is based on Chromium's chrome.extension API. This documentation is derived from extension.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,