Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/extension/isallowedfileschemeaccess/index.md
6581 views
------{{AddonSidebar()}}
Returns true if the extension can access the "file://" scheme, false otherwise.
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 "file://" URLs, false otherwise.
Firefox will always return false.
Browser compatibility
{{Compat}}
Examples
{{WebExtExamples}}
Note: This API is based on Chromium's
chrome.extensionAPI. This documentation is derived fromextension.jsonin the Chromium code.