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
ChromeEdgeFirefoxOperaSafariFirefox for Android
ftpProtocolEnabledChrome No support NoEdge No support NoFirefox Full support 72Opera No support NoSafari 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();
});