Open Bug 2083498 Opened 1 month ago Updated 1 month ago

Use Services.jsm and remove use of PrefUtils.js and XPCU.getService in DOMi

Categories

(SeaMonkey :: General, task)

SeaMonkey 2.53

Tracking

(seamonkey2.53? affected)

ASSIGNED
Tracking Status
seamonkey2.53 ? affected

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.25)

Attachments

(1 file)

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

Attachment #9664133 - Flags: review?(frgrahl)
Attachment #9664133 - Flags: approval-comm-release?
Whiteboard: SM2.53.25

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

Attachment #9664133 - Flags: review?(frgrahl)
Attachment #9664133 - Flags: review+
Attachment #9664133 - Flags: approval-comm-release?
Attachment #9664133 - Flags: approval-comm-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: