Search code examples
javascriptfirefox-addonfirefox-addon-webextensionsfirefox-developer-tools

chrome.proxy API for Firefox WebExtensions


Does Firefox WebExtensions support an API to change proxy preferences (like the chrome.proxy API)?

Does Mozilla have plans to add it?


Solution

  • Yes. Starting from 55th Firefox it will be possible. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/proxy

    Keep in mind, this API absolutely different from Chrome version.

    For code split use typeof browser === 'undefined'