Commit Graph

9 Commits

Author SHA1 Message Date
Bob Silverberg
67a5cde2e4 Bug 1408099 - Fix ExtensionPreferencesManager.getLevelOfControl to deal with undefined settings, r=aswan
Prior to this, if getLevelOfControl was called before the setting was defined to the EPM, an
exception was thrown. This fixes it by returning a level of control of "not_controllable"
if the setting has not yet been defined.

MozReview-Commit-ID: 96jXLoJlUI
2017-10-12 17:31:27 -04:00
Mark Striemer
69b5c742a6 Bug 1354344 - Show extension controlling home page in preferences r=bsilverberg,jaws
MozReview-Commit-ID: 9mU3SvdK91c
2017-09-07 11:35:06 -05:00
Bob Silverberg
ccd9787851 Bug 1322308 - Allow WebExtensions to read the overriden homepage and newTab values, r=mixedpuppy
This introduces browser.browserSettings.homepageOverride and browser.browserSettings.newTabPageOverride
which will return the values of the overridden home page and the overridden new tab page.

These browserSettings are read-only.

MozReview-Commit-ID: A9vJP2QIaoA
2017-07-17 14:16:02 -04:00
Bob Silverberg
2e01e83446 Bug 1381605 - Do not load ExtensionSettingsStore's JSON file synchronously, r=aswan
MozReview-Commit-ID: 7lQp9hL9pNd
2017-07-24 15:49:30 -04:00
Mark Banner
b1b7a75372 Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop
MozReview-Commit-ID: EnhSBHMjurr
2017-07-11 22:49:55 +01:00
Bob Silverberg
41925d1e93 Bug 1368545 - Prevent the ExtensionPreferencesManager from mistakenly overriding a user set preference, r=aswan
Prior to this change the code that automatically updates prefs when an add-on is disabled, reenabled or uninstalled
could overwrite changes to a pref that were made manually by a user, either via the UI or via about:config.

This change introduces a check into each of those actions that verifies that the current state of the pref
is what we expect it to be based on the data we have about add-on settings, and if it is not then we
do not change the pref.

MozReview-Commit-ID: 5DpEg2fGwIW
2017-06-05 14:22:05 -04:00
Bob Silverberg
2a3140feb8 Bug 1345583 - Move code for startup and shutdown handling of preferences to ExtensionPreferencesManager, r=aswan
MozReview-Commit-ID: 8EILFeFjvnd
2017-03-08 14:47:26 -05:00
Bob Silverberg
7a75bd36e0 Bug 1341277 - Part 2: Update ExtensionPreferencesManager to support disabled settings. r=aswan
MozReview-Commit-ID: FG7u2KbWLdG
2017-02-22 14:27:33 -05:00
Bob Silverberg
3a5d69e781 Bug 1320736 - Part 3: Create ExtensionPreferencesManager module, r=aswan
MozReview-Commit-ID: BiY8XikUSUV
2017-01-16 17:30:47 -05:00