Crash with range, splitText
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(7 files, 3 obsolete files)
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Updated•12 years ago
|
Reporter | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Updated•12 years ago
|
Updated•12 years ago
|
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Comment 8•12 years ago
|
||
Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Assignee | ||
Comment 13•12 years ago
|
||
Assignee | ||
Comment 14•12 years ago
|
||
Assignee | ||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Comment 18•12 years ago
|
||
Assignee | ||
Comment 19•12 years ago
|
||
Assignee | ||
Comment 20•12 years ago
|
||
Assignee | ||
Comment 21•12 years ago
|
||
Assignee | ||
Comment 22•12 years ago
|
||
Assignee | ||
Comment 23•12 years ago
|
||
Comment 24•12 years ago
|
||
Assignee | ||
Comment 25•12 years ago
|
||
Comment 26•12 years ago
|
||
Assignee | ||
Comment 27•12 years ago
|
||
Comment 28•12 years ago
|
||
Comment 29•12 years ago
|
||
Comment 30•12 years ago
|
||
Comment 31•12 years ago
|
||
Assignee | ||
Comment 32•12 years ago
|
||
Comment 33•12 years ago
|
||
Assignee | ||
Comment 34•12 years ago
|
||
Comment 35•12 years ago
|
||
Updated•12 years ago
|
Comment 36•2 years ago
|
||
wrong-bug-number |
A mutation caused by a call of Text::SplitText
is handled by 2 method calls,
CharacterDataChanged
and ContentInserted
, in nsRange
. Therefore,
nsRange
stores some nodes for the later one, but
HTMLTextAreaElement::ContentInserted
is called before it and that causes
another mutation which causes calling nsRange::CharacterDataChanged
again.
Therefore, the assertion detects the recursive call.
For avoiding this issue, HTMLTextAreaElement
needs to wait that all ranges
handle the mutation first. Fortunately, ContentInserted
is called with a
script blocker (*1). Therefore, HTMLTextAreaElement
can use script runner
to reset the anonymous subtree.
Comment 37•2 years ago
|
||
wrong-bug-number |
A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)
Comment 38•2 years ago
|
||
wrong-bug-number |
Comment on attachment 9313946 [details]
Bug 803924 - Make HTMLTextAreaElement
handle the mutation changes after all ranges handle them r=smaug!
Revision D167766 was moved to bug 822734. Setting attachment 9313946 [details] to obsolete.
Description
•