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•13 years ago
|
||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Updated•13 years ago
|
| Reporter | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Updated•13 years ago
|
Updated•13 years ago
|
Updated•13 years ago
|
| Assignee | ||
Comment 7•13 years ago
|
||
| Assignee | ||
Comment 8•13 years ago
|
||
| Assignee | ||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
| Assignee | ||
Comment 13•13 years ago
|
||
| Assignee | ||
Comment 14•13 years ago
|
||
| Assignee | ||
Comment 15•13 years ago
|
||
Comment 16•13 years ago
|
||
Comment 17•13 years ago
|
||
Comment 18•13 years ago
|
||
| Assignee | ||
Comment 19•13 years ago
|
||
| Assignee | ||
Comment 20•13 years ago
|
||
| Assignee | ||
Comment 21•13 years ago
|
||
| Assignee | ||
Comment 22•13 years ago
|
||
| Assignee | ||
Comment 23•13 years ago
|
||
Comment 24•13 years ago
|
||
| Assignee | ||
Comment 25•13 years ago
|
||
Comment 26•13 years ago
|
||
| Assignee | ||
Comment 27•13 years ago
|
||
Comment 28•13 years ago
|
||
Comment 29•13 years ago
|
||
Comment 30•13 years ago
|
||
Comment 31•13 years ago
|
||
| Assignee | ||
Comment 32•13 years ago
|
||
Comment 33•13 years ago
|
||
| Assignee | ||
Comment 34•13 years ago
|
||
Comment 35•13 years ago
|
||
Updated•13 years ago
|
Comment 36•3 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•3 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•3 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
•