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
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
ftpProtocolEnabled | ChromeNo supportNo | EdgeNo supportNo | FirefoxFull support72
| OperaNo supportNo | SafariNo supportNo | Firefox for AndroidNo supportNo |
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
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();
});