Use Services.jsm and remove use of PrefUtils.js and XPCU.getService in DOMi
Categories
(SeaMonkey :: General, task)
Tracking
(seamonkey2.53? affected)
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
Details
(Whiteboard: SM2.53.25)
Attachments
(1 file)
|
45.89 KB,
patch
|
frg
:
review+
frg
:
approval-comm-release+
|
Details | Diff | Splinter Review |
Make more use of Services.jsm in DOMi which means PrefUtils.js won't be needed. At the same time remove remaining uses of XPCU.getService.
[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: none
Testing completed (on m-c, etc.): 2.53.25b1pre
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none
Updated•1 month ago
|
Comment 2•1 month ago
|
||
Comment on attachment 9664133 [details] [diff] [review]
2083498-domi-remove-prefutils-xpcu-getservice-25325.patch
suite/extensions/inspector/resources/content/Flasher.js
There is now some redundancy in the calls e.g.
get duration() { return Services.prefs.getIntPref("inspector.blink.duration", 1200); },
this.mFlasher.duration = Services.prefs.getIntPref(aData, 1200);
Shouldn't we use constants for this? Or do we even need this because the pref defaults are in suite/extensions/inspector/resources/content/prefs/inspector.js and are added to the general preferences. If someone deletes then manually tough luck. Goes for lots of others too currently.
Comment 3•1 month ago
|
||
Comment on attachment 9664133 [details] [diff] [review]
2083498-domi-remove-prefutils-xpcu-getservice-25325.patch
Other then the previous comment fine with me and lets get the beta out the door. Can be changed later if we want to. r/a
Description
•