Closed
Bug 940754
Opened 11 years ago
Closed 11 years ago
Fix rooting hazard in WorkerPrivateParent::WrapObject()
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(1 file)
928 bytes,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
Currently this has a live JSObject* over a call to nsWrapperCache::PreserveWrapper(), which can GC.
The fix is just to root this object.
Attachment #8334930 -
Flags: review?(bent.mozilla)
Why can PreserveWrapper GC?
Comment on attachment 8334930 [details] [diff] [review]
root-wrap-object
Review of attachment 8334930 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8334930 -
Flags: review?(bent.mozilla) → review+
Comment 3•11 years ago
|
||
> Why can PreserveWrapper GC?
Probably the virtual QI calls which can in theory call into script in general (but probably don't for things that inherit from nsWrapperCache)?
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #3)
Yes, it's the QueryInterface the analysis complains about.
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Unfortunately this and the other bugs in https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=db0f8a5eeb33 have been backed out for causing rootanalysis assertions, eg:
https://tbpl.mozilla.org/php/getParsedLog.php?id=30835010&tree=Mozilla-Inbound
Backout:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=05a0228c2caa
(For quick relanding, I recommend the third party qbackout extension and '--apply' mode)
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•