How to change firefox preferences (about:config) using the new WebExtensions api?

二次信任 提交于 2019-12-01 03:56:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!