browserSettings.ftpProtocolEnabled

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

The underlying value is a boolean.

Note: From Firefox version 88 this setting is read-only.

Browser compatibility

BCD tables only load in the browser

Examples

Toggle the setting:

js

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();
});