问题
To change the settings (about:config) with the old API you would simply do:
require('sdk/preferences/service').set('media.webrtc.debug.multi_log', true);
I can't find anything on the subject for the new WebExtensions add-ons of Firefox. Is it not available yet?
回答1:
This is not possible, and likely, never will be.
Source: official WebExtensions FAQ https://wiki.mozilla.org/WebExtensions/FAQ#Will_I_have_access_to_about:config_or_the_preferences.3F
Also, you might be interested in this discussion on mozilla-community.org: https://discourse.mozilla-community.org/t/webextension-read-write-access-to-about-config/12268
来源:https://stackoverflow.com/questions/37241450/how-to-change-firefox-preferences-aboutconfig-using-the-new-webextensions-api