browserSettings.ftpProtocolEnabled

A BrowserSetting object that determines whether the FTP protocol is enabled in the browser.

The underlying value is a boolean.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
ftpProtocolEnabledChrome No support NoEdge No support NoFirefox Full support 72Opera No support NoFirefox Android No support No

Legend

Full support Ā 
Full support
No support Ā 
No support

Examples

Toggle the setting:

function toggleAllowFtp() {

  function toggle(current) {
    console.log(`Current value: ${current.value}`);
    browser.browserSettings.ftpProtocolEnabled.set({value: !current.value});
  }

  browser.browserSettings.ftpProtocolEnabled.get({}).then(toggle);
}

browser.browserAction.onClicked.addListener(() => {
  toggleAllowFtp();
});