Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/browsersettings/ftpprotocolenabled/index.md
6552 views
---
title: browserSettings.ftpProtocolEnabled slug: Mozilla/Add-ons/WebExtensions/API/browserSettings/ftpProtocolEnabled page-type: webextension-api-property tags: - API - Add-ons - Extensions - Property - Reference - WebExtensions - browserSettings - contextMenuShowEvent - ftpProtocolEnabled browser-compat: webextensions.api.browserSettings.ftpProtocolEnabled
---

{{AddonSidebar()}}

A {{WebExtAPIRef("types.BrowserSetting", "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

{{Compat}}

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

{{WebExtExamples}}