Closed
Bug 734018
Opened 13 years ago
Closed 13 years ago
Don't patch DOMRequestService into Services.jsm
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: philikon, Assigned: philikon)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Gavin
:
review+
fabrice
:
review+
|
Details | Diff | Splinter Review |
Patching Services.jsm from the outside is just bad form. Let's move those to Services.jsm proper. (Note also that bug 732982 is going to define the DOMRequestService there.)
Also, while we're making that modification, let's not use two-letter abbreviations for new service definitions. It is entirely not obvious what "Services.rs" means (same goes for Services.tm, Services.ww, etc... I should really file a bug to fix those.)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → philipp
Assignee | ||
Updated•13 years ago
|
Component: DOM → General
QA Contact: general → general
Summary: WebApps.js: don't patch Services.jsm → Don't patch DOMRequestService into Services.jsm, define message managers
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #612744 -
Flags: review?
Attachment #612744 -
Flags: feedback?(fabrice)
Assignee | ||
Updated•13 years ago
|
Attachment #612744 -
Flags: review?(gavin.sharp)
Attachment #612744 -
Flags: review?(fabrice)
Attachment #612744 -
Flags: review?
Attachment #612744 -
Flags: feedback?(fabrice)
Comment 2•13 years ago
|
||
Comment on attachment 612744 [details] [diff] [review]
v1
r=me on the Services.jsm change (but also add the new entries to the browser_Services.js test).
Attachment #612744 -
Flags: review?(gavin.sharp) → review+
Comment 3•13 years ago
|
||
Comment on attachment 612744 [details] [diff] [review]
v1
Review of attachment 612744 [details] [diff] [review]:
-----------------------------------------------------------------
We must also update https://developer.mozilla.org/en/JavaScript/Code_modules/Services.jsm
Attachment #612744 -
Flags: review?(fabrice) → review+
Comment 4•13 years ago
|
||
Try run for 53d6f1da2815 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=53d6f1da2815
Results (out of 296 total builds):
exception: 2
success: 208
warnings: 86
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/pweitershausen@mozilla.com-53d6f1da2815
Assignee | ||
Comment 5•13 years ago
|
||
Assignee | ||
Comment 6•13 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/e46fd6a8cff5
I can't view the try results, and I figured the 2 exceptions were just random oranges. Apparently not. For posterity, here's the inbound push that turned orange: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=d7a4dfac3acf
Assignee | ||
Comment 7•13 years ago
|
||
So the problems are leaks. I suspect that we're now somehow leaking Services.ppmm and Services.cpmm (at shutdown, I bet). Am I missing some sort of clean up here? These can't be a special case... Or maybe they are?
Assignee | ||
Comment 8•13 years ago
|
||
I split the patch up and -- for now -- left out the part where I updated all uses of cpmm/ppmm to use Services.{cpmm|ppmm}, suspecting those changes introduced the leaks. I'll deal with those in a follow-up, I just want to get this bug out the door.
Here's a try build for just (a) not patching the DOMRequestService into Services.jsm and (b) defining cpmm/ppmm in Services.jsm: https://tbpl.mozilla.org/?tree=Try&rev=162558c57a6b
Comment 9•13 years ago
|
||
We probably shouldn't add cpmm/ppmm to Services.jsm if any use of them introduces leaks.
Assignee | ||
Comment 10•13 years ago
|
||
(In reply to Gavin Sharp (use gavin@gavinsharp.com for email) from comment #9)
> We probably shouldn't add cpmm/ppmm to Services.jsm if any use of them
> introduces leaks.
That's assuming that there isn't a bug somewhere that causes the leak. But you make a good point, let's be cautious. I'll just commit the "don't patch DOMRequest into Service.jsm" part.
Assignee | ||
Comment 11•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Summary: Don't patch DOMRequestService into Services.jsm, define message managers → Don't patch DOMRequestService into Services.jsm
Comment 12•13 years ago
|
||
Try run for 162558c57a6b is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=162558c57a6b
Results (out of 290 total builds):
exception: 3
success: 254
warnings: 32
failure: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/pweitershausen@mozilla.com-162558c57a6b
Comment 13•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in
before you can comment on or make changes to this bug.
Description
•