GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

browserSettings.ftpProtocolEnabled

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

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.

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

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"browserSettings.ftpProtocolEnabled". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserSettings/ftpProtocolEnabled

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·