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

前端 未结 1 1800
心在旅途
心在旅途 2020-12-11 07:03

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


        
相关标签:
1条回答
  • 2020-12-11 07:28

    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

    0 讨论(0)
提交回复
热议问题