Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/extension/isallowedincognitoaccess/index.md
6581 views
------{{AddonSidebar()}}
Check whether the extension is allowed access to tabs opened in "private browsing" mode.
This is an asynchronous function that returns a Promise.
Syntax
Parameters
None.
Return value
A Promise that will be fulfilled with a boolean: true if the extension is allowed access to private tabs, false otherwise.
Examples
{{WebExtExamples}}
Browser compatibility
{{Compat}}
Note: This API is based on Chromium's
chrome.extensionAPI. This documentation is derived fromextension.jsonin the Chromium code.