Does Firefox WebExtensions support an API to change proxy preferences (like the chrome.proxy API)?
Does Mozilla have plans to add it?
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'