Closed
Bug 1034380
Opened 10 years ago
Closed 10 years ago
Potential assertion failure in MessagePort structured cloning
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jmorton, Assigned: jmorton)
Details
Attachments
(1 file, 2 obsolete files)
See http://mxr.mozilla.org/mozilla-central/source/dom/base/MessagePort.cpp#188 This callback should not return true and a null returnObject. If JS_WrapObject fails, this could happen.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jmorton
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8450687 -
Flags: review?(bzbarsky)
Comment 2•10 years ago
|
||
Comment on attachment 8450687 [details] [diff] [review] 0001-Bug-1034380-Prevent-MessagePort-transferable-callbac.patch This doesn't handle the case when "obj" is null. It also relies on falling through out of our tag == SCTAG_DOM_MAP_MESSAGEPORT block, which is ok for now, but would get worse once we had more cases. I'd prefer we just do early returns of false as needed: if (!obj) { retunr false; } etc.
Attachment #8450687 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 3•10 years ago
|
||
Hopefully more like what you were thinking.
Attachment #8450687 -
Attachment is obsolete: true
Attachment #8451769 -
Flags: review?(bzbarsky)
Comment 4•10 years ago
|
||
Comment on attachment 8451769 [details] [diff] [review] 0001-Bug-1034380-Prevent-MessagePort-transferable-callbac.patch Looks great, thanks. r=me.
Attachment #8451769 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
hi, could you provide a Try link. Suggestions for what to run if you haven't yet can be found here: https://wiki.mozilla.org/Sheriffing/How:To:Recommended_Try_Practices
Keywords: checkin-needed
Assignee | ||
Comment 7•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=b2c1fb29dc97
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/61a09b7b7e9d
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/61a09b7b7e9d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•