Change instances of using getService to Services.jsm where possible in SeaMonkey
Categories
(SeaMonkey :: General, enhancement)
Tracking
(seamonkey2.49esr wontfix, seamonkey2.63 wontfix, seamonkey2.53 fixed, seamonkey2.57esr fixed)
People
(Reporter: frg, Assigned: frg)
References
Details
(Whiteboard: SM2.53.1)
Attachments
(3 files)
(deleted),
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
Summary says it all. Switching to Services makes the code more readable and usually uses a js variable or two less.
As an example see Bug 1412893
Assignee | ||
Comment 1•5 years ago
|
||
Use Services obs and prefs.
Assignee | ||
Comment 2•5 years ago
|
||
Use Services.io in SeaMonkey if possible
Assignee | ||
Comment 3•5 years ago
|
||
Use Services.dirsvc whenever possible in SeaMonkey.
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/dcdf7978e831
Part 1: Use Services obs and prefs if possible in SeaMonkey. r=IanN
https://hg.mozilla.org/comm-central/rev/b7054ece2174
Part 2: Use Services.io in SeaMonkey if possible. r=IanN
https://hg.mozilla.org/comm-central/rev/ad3a7eb5e874
Part 3: Use Services.dirsvc whenever possible in SeaMonkey. r=IanN
Assignee | ||
Comment 8•5 years ago
|
||
Above comm-central Part 2 needed some extensive rebasing.
https://hg.mozilla.org/releases/comm-esr60/rev/20276b433adcacecf56fae1b94c8a0e35c543179
Bug 1588876 - Part 1: Use Services obs and prefs if possible in SeaMonkey. r=IanN a=IanN
https://hg.mozilla.org/releases/comm-esr60/rev/34e2a828cd03ace95030a8f29c157800081b445b
Bug 1588876 - Part 2: Use Services.io in SeaMonkey if possible. r=IanN a=IanN
https://hg.mozilla.org/releases/comm-esr60/rev/011d4278532394e5181b390189148a12e54d7278
Bug 1588876 - Part 3: Use Services.dirsvc whenever possible in SeaMonkey. r=IanN a=IanN
Assignee | ||
Comment 9•4 years ago
|
||
Target 2.53.1
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/ac7b8cac6c02e5afbdcdde66455aac3f88b08c02
Part 1: Use Services obs and prefs if possible in SeaMonkey. r=IanN a=IanN
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/b13f57e99e2d1da2d8b534876ab5287a4e6cc0f0
Part 2: Use Services.io in SeaMonkey if possible. r=IanN a=IanN
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/0d052a28e6fa0f861ebfa31c35e4df657a107581
Part 3: Use Services.dirsvc whenever possible in SeaMonkey. r=IanN a=IanN
Description
•