Closed Bug 592653 Opened 14 years ago Closed 6 years ago

Use Services.prefs instead of preferences-service / gPrefService

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: iannbugzilla, Assigned: florian, Mentored)

References

Details

(Keywords: meta, Whiteboard: [good first bug][lang=js] [meta])

Attachments

(2 files)

Neil noticed that whilst I was working on update SeaMonkey's browser_bug515006.js that Firefox's browser_354894.js was still using gPrefService rather than Services.prefs
This should probably be fixed and elsewhere, if appropriate.
Depends on: 707570
http://mxr.mozilla.org/comm-central/search?string=gPrefService&case=1&find=%2Ftest
"Found 207 matching lines in 58 files"

/mozilla/docshell/test/browser/browser_bug435325.js : I filed bug 707570.

See also
/mozilla/toolkit/components/search/tests/xpcshell/test_645970.js
2 /suite/common/tests/browser/browser_*.js
(other tests are Firefox specific...)

***

http://mxr.mozilla.org/comm-central/search?string=preferences-service&case=1&find=%2Ftest
"Found 384 matching lines in 305 files"
Keywords: meta
Whiteboard: [good first bug]
Depends on: 707786
Depends on: 707789
Assignee: nobody → michaelkohler
Assignee: michaelkohler → nobody
Depends on: 716258
No longer depends on: 707789
Depends on: 707789
Depends on: 735333
Whiteboard: [good first bug] → [good first bug][mentor=sgautherie][lang=js] [meta]
Hi, I'd like to fix this bug.
Do I have to replace all "gPrefService." in here: http://mxr.mozilla.org/comm-central/search?string=gPrefService&case=1&find=%2Ftest with "Services.Prefs."?
Assignee: nobody → amod.narvekar
since there is no news from Roberta, I would like to contribute to the bug.
Status: NEW → ASSIGNED
Mentor: bugzillamozillaorg_serge_20140323
Whiteboard: [good first bug][mentor=sgautherie][lang=js] [meta] → [good first bug][lang=js] [meta]
sgautherie, are you still interested in mentoring this bug?
Flags: needinfo?(bugzillamozillaorg_serge_20140323)
As the assignee, I request you for 1 week's time. I would return to bugzilla soon. Thanks !
(In reply to Serge Gautherie (:sgautherie) from comment #1)

> http://mxr.mozilla.org/comm-central/search?string=gPrefService&case=1&find=%2Ftest
> "Found 207 matching lines in 58 files"

"Found 159 matching lines in 40 files":
*The first 39 are in /browser: WontFix'ed in bug 716258 :-/
*The last one is in /toolkit: should be fixed, as in bug 707570.

> ***
> 
> http://mxr.mozilla.org/comm-central/search?string=preferences-service&case=1&find=%2Ftest
> "Found 384 matching lines in 305 files"

"Found 195 matching lines in 167 files"
"50% done", yet still a lot of files (though probably not all) to update.

***

Select the part(s) you are interested in, file blocking bugs, fix them ;-)
Flags: needinfo?(bugzillamozillaorg_serge_20140323)
Mentor: jmaher
Assignee: amod.narvekar → nobody
Hi, Im new to testing and would love to work on this bug.
It would be helpful if you let me know on how to start with and some good links about testing would be awesome. :d
thanks. :D
Mentor: bugzillamozillaorg_serge_20140323
This patch was produced with the script at https://bitbucket.org/fqueze/xpcshell-rewrites/commits/8bbf5751b38d617798cb1da7105b14b49320f90a which preserves indentation.
Attachment #8937810 - Flags: review?(standard8)
Assignee: nobody → florian
We no longer care about add-on compat, so we can remove the browser.js lazy getter.
Attachment #8937811 - Flags: review?(standard8)
Comment on attachment 8937810 [details] [diff] [review]
script-generated patch

Review of attachment 8937810 [details] [diff] [review]:
-----------------------------------------------------------------

Very nice. You might want to pass it through try before landing, just in case.

nit: "Bug 592653 - script-generated patch to replace gPrefService with Services.prefsfrom browser.js, r=Standard8."

missing space after prefs.
Attachment #8937810 - Flags: review?(standard8) → review+
Comment on attachment 8937811 [details] [diff] [review]
remove gPrefService from browser.js

Review of attachment 8937811 [details] [diff] [review]:
-----------------------------------------------------------------

Nice cleanup, less globals! :-)
Attachment #8937811 - Flags: review?(standard8) → review+
Pushed by florian@queze.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/abbde724b07a
script-generated patch to replace gPrefService with Services.prefs, r=Standard8.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2171fb0b3801
remove gPrefService from browser.js, r=Standard8.
https://hg.mozilla.org/mozilla-central/rev/abbde724b07a
https://hg.mozilla.org/mozilla-central/rev/2171fb0b3801
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: