provide a way to query whether a specific pref is extension controlled
Categories
(WebExtensions :: General, enhancement, P2)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
(Blocks 3 open bugs)
Details
Attachments
(1 file)
ExtensionPreferencesManager has a way to see if an extension controlls a setting. We need to provide some UI signal in about:config for prefs that are extension controlled, in order to do that we need an API to check for that in EPM.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
If this will be used by "about:config" as suggested in bug 1595865, care should be taken to design an API that would not slow down the display of about 3.000 preferences using the "Show All" command. This means avoiding quadratic behavior but also trying not to call the C++ Preferences APIs a second time when they are already called efficiently in "about:config".
Also, it's important to note that "about:config" runs only in the parent process and its architecture is currently synchronous, thus the underlying APIs should likely be synchronous as well. This unless we're purely displaying an icon that can be fetched asynchronously, and it doesn't affect the state of the buttons.
Comment 2•5 years ago
|
||
There also need to be a decision on whether "about:config" would have to be notified if an extension is disabled, and if so which API would provide the notification.
Assignee | ||
Comment 3•4 years ago
|
||
(In reply to :Paolo Amadini from comment #2)
There also need to be a decision on whether "about:config" would have to be notified if an extension is disabled, and if so which API would provide the notification.
That shouldn't be necessary. Just listen for changes from ExtensionSettingsManager.
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d81f3861a0f4 add a utility function to map pref names to extension settings r=robwu
Comment 6•4 years ago
|
||
bugherder |
Comment 7•4 years ago
•
|
||
Hello,
As per the screenshot in Comment 4 from https://bugzilla.mozilla.org/show_bug.cgi?id=1595865 I have installed the HTTPS Everywhere extension on the latest Nightly and checked the existance of the devtools.webextebnsions.https-everywhere@eff.org.enabled
in about:config, however, it is not listed there.
I have then proceeded to install several other extensions which might take control of preferences, such as New Tab Override and Ghostery, and could not find any specific evidence that control over some prefs is taken over by the extensions i.e. the ID of the extension is mentioned in the pref name as in the above mentioned screenshot.
The only prefs that have the IDs of the extensions in their names are from this specific category: extensions.webextensions.ExtensionStorageIDB.migrated.
. However this is the case for the latest Release version as well and not specific to FX73 where the fix should be present.
Is there a specific way to test this fix? And if so could you please provide some STR and possibly an extension to test this with? Thanks!
Assignee | ||
Comment 8•4 years ago
|
||
There is nothing here to directly test, it is only infrastructure necessary to implement the bugs that this one blocks. It has tests.
Description
•