Commit Graph

14 Commits

Author SHA1 Message Date
Johann Hofmann
63267aeeb7 Bug 1425613 - Part 1 - Record and expose pref access statistics in nsIPrefService in debug mode. r=njn
These statistics will be used by browser tests to analyze frequently accessed
preferences so that we can recommend using preference observers instead.

MozReview-Commit-ID: 9uZnwmjZL4U
2018-03-01 13:59:43 +01:00
Andreea Pavel
cd8eb86270 Backed out 2 changesets (bug 1425613) backed out for browser chrome failures at automation.py on a CLOSED TREE
Backed out changeset 6426e089e5c5 (bug 1425613)
Backed out changeset 4939d44bcd0a (bug 1425613)
2018-03-17 11:55:21 +02:00
Johann Hofmann
061941f827 Bug 1425613 - Part 1 - Record and expose pref access statistics in nsIPrefService in debug mode. r=njn
These statistics will be used by browser tests to analyze frequently accessed
preferences so that we can recommend using preference observers instead.

MozReview-Commit-ID: 9uZnwmjZL4U
2018-03-01 13:59:43 +01:00
Nicholas Nethercote
06d8d51734 Bug 440908 - Add support for sticky and locked attributes to default prefs. r=glandium
Sticky prefs are already specifiable with `sticky_pref`, but this is a more
general attribute mechanism. The ability to specify a locked pref in the data
file is new.

The patch also adds nsIPrefService.readDefaultPrefsFromFile, to match the
existing nsIPrefService.readUserPrefsFromFile method, and converts a number of
the existing tests to use it.

MozReview-Commit-ID: 9LLMBJVZfg7
2018-03-02 15:31:40 +11:00
Nicholas Nethercote
ed0903e220 Bug 1435927 - Remove NS_PREFSERVICE_RESET_TOPIC_ID. r=glandium
It's unused.

MozReview-Commit-ID: Hhx4MhIVyzQ
2018-02-06 13:57:35 +11:00
Nicholas Nethercote
539308916b Bug 1435927 - Remove dead declarations from nsIPrefService.idl. r=glandium
MozReview-Commit-ID: ozUI8tVOVn
2018-02-06 13:56:27 +11:00
Nicholas Nethercote
12c511004d Bug 1413413 (part 2) - Remove support for extensions having their own prefs file. r=glandium,kmag.
It's no longer needed, now that legacy extensions aren't supported.

Pieces removed include the following.

- The "load-extension-default" observer notification.

- The code for reading defaults/preferences/*.js from extensions.

- The unit test for this stuff.

- A crash reporter annotation relating to very long prefs set by add-ons.

- All references to "ExtPrefDL".

MozReview-Commit-ID: KMBoYn3uZ3x
2017-10-31 16:34:57 +11:00
Benjamin Smedberg
9db7895288 Bug 1367813 - 1) Add telemetry for prefs.js not existing or being corrupted, and the presence of a user.js file. 2) Rename and change the nsIPrefService.readUserPrefs API. The new API reads user prefs from a file but doesn't remember that location or save changed preferences to that location. r=milan data-r=rweiss
MozReview-Commit-ID: FD5npJlB24W
2017-06-21 15:26:10 -04:00
Phil Ringnalda
c64cad4109 Backed out changeset 4f0ee0f75a30 (bug 1367813) for Windows opt permaorange in test_worker_basic.html
MozReview-Commit-ID: 2k693yFa28r
2017-06-22 20:43:11 -07:00
Benjamin Smedberg
d6e744168b Bug 1367813 - 1) Add telemetry for prefs.js not existing or being corrupted, and the presence of a user.js file. 2) Rename and change the nsIPrefService.readUserPrefs API. The new API reads user prefs from a file but doesn't remember that location or save changed preferences to that location. r=milan data-r=rweiss
MozReview-Commit-ID: FD5npJlB24W
2017-06-21 15:26:10 -04:00
Irving Reid
8291076c6b Bug 1056170 - Expose pref service 'dirty' flag and test it. r=bsmedberg 2014-09-04 09:52:28 -04:00
Carsten "Tomcat" Book
b519310740 Backed out changeset 4a4e0c618649 (bug 1056170) for XPC Test Failures 2014-09-04 09:40:01 +02:00
Irving Reid
a12291fd01 Bug 1056170 - Expose pref service 'dirty' flag and test it. r=bsemdberg 2014-08-27 22:21:07 -04:00
Birunthan Mohanathas
12b79e6293 Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00