extension.isAllowedFileSchemeAccess()

Retrieves the state of the extension's access to the 'file://' scheme (as determined by the user-controlled 'Allow access to File URLs' checkbox.

Syntax

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

Parameters

callback
function. The function is passed the following arguments:
isAllowedAccess
boolean. True if the extension can access the 'file://' scheme, false otherwise.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?NoYes33
Firefox
Basic supportNo

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,