Closed Bug 940754 Opened 11 years ago Closed 11 years ago

Fix rooting hazard in WorkerPrivateParent::WrapObject()

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

Attached patch root-wrap-objectSplinter 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)
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+
> 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)?
(In reply to Boris Zbarsky [:bz] from comment #3) Yes, it's the QueryInterface the analysis complains about.
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)
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.

Attachment

General

Created:
Updated:
Size: