Closed
Bug 763626
Opened 13 years ago
Closed 13 years ago
Crash [@ nsDOMTokenList::ToString] with itemRef, GC
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
| Tracking | Status | |
|---|---|---|
| firefox15 | --- | unaffected |
| firefox16 | + | fixed |
| firefox-esr10 | --- | unaffected |
People
(Reporter: jruderman, Assigned: dzbarsky)
References
Details
(4 keywords, Whiteboard: [advisory-tracking-])
Attachments
(3 files, 1 obsolete file)
1. Set
user_pref("dom.new_bindings", false);
2. Install https://www.squarefree.com/extensions/domFuzzLite3.xpi
3. Load the testcase.
Result: Crash [@ nsDOMTokenList::ToString]
| Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
That's really odd. Why do the bindings matter?
In any case, the key part is that the element went away and didn't null itself out on the domtokenlist. nsDOMSettableTokenListPropertyDestructor should null out the mElement on the list, I bet.
Updated•13 years ago
|
Blocks: 591467
tracking-firefox16:
--- → ?
Comment 3•13 years ago
|
||
Ah, yeah, should DropReference().
| Assignee | ||
Comment 4•13 years ago
|
||
I'll write a patch in a little bit.
| Assignee | ||
Comment 5•13 years ago
|
||
Is there a way to convert that testcase to a crashtest?
Comment 6•13 years ago
|
||
Comment on attachment 632026 [details] [diff] [review]
Patch
r=me, though can list really be null here?
As far as tests.. you should be able to make a mochitest out of it.
Attachment #632026 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
You're right, the Element should keep the nsDOMSettableTokenList alive
Attachment #632026 -
Attachment is obsolete: true
Attachment #632042 -
Flags: review?(bzbarsky)
Comment 8•13 years ago
|
||
Comment on attachment 632042 [details] [diff] [review]
Patch with test
r=me
Attachment #632042 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Updated•13 years ago
|
Flags: in-testsuite+
Target Milestone: --- → mozilla16
| Assignee | ||
Comment 9•13 years ago
|
||
| Assignee | ||
Comment 10•13 years ago
|
||
Merged to mc by mbrubeck:
https://hg.mozilla.org/mozilla-central/rev/a2ad5ae1ed47
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
status-firefox16:
--- → fixed
Comment 11•13 years ago
|
||
From the blocking bug 591467 notation I'm assuming you mean this is a regression from that feature, and I've therefore marked previous releases as "unaffected". If this is incorrect and we need this security fix on those branches please update the status(es) to "affected".
status-firefox-esr10:
--- → unaffected
status-firefox15:
--- → unaffected
Keywords: regression,
sec-high
Comment 12•13 years ago
|
||
Not tracking this for advisories since 15 and earlier are unaffected.
Whiteboard: [advisory-tracking-]
Updated•12 years ago
|
Group: core-security
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•