Closed
Bug 679459
Opened 15 years ago
Closed 15 years ago
"ASSERTION: mEndOffset is beyond the end of this node" in nsRange::ContentInserted
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(4 files, 1 obsolete file)
|
322 bytes,
text/html
|
Details | |
|
3.18 KB,
text/plain
|
Details | |
|
1008 bytes,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
|
1.07 KB,
patch
|
Details | Diff | Splinter Review |
###!!! ASSERTION: mEndOffset is beyond the end of this node: 'static_cast<PRUint32>(mEndOffset) <= aInfo->mChangeEnd', file content/base/src/nsRange.cpp, line 305
| Reporter | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Comment 2•15 years ago
|
||
I added this assertion in bug 191864. I'll investigate...
| Assignee | ||
Updated•15 years ago
|
Keywords: regression
| Assignee | ||
Comment 3•15 years ago
|
||
The problem is that nsRange::CutContents uses SplitData internally
in a different way than splitText, in some case it removes the
new node:
http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsRange.cpp#1395
Calling SetTextInternal with NULL in that case makes us use the old
path in nsRange::CharacterDataChanged that doesn't try to change the
boundary point.
Attachment #558235 -
Flags: review?(Olli.Pettay)
| Assignee | ||
Comment 4•15 years ago
|
||
Updated•15 years ago
|
Attachment #558235 -
Flags: review?(Olli.Pettay) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
Attachment #558236 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•15 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/077597e9accd
http://hg.mozilla.org/integration/mozilla-inbound/rev/ed1946447c5e
Flags: in-testsuite+
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
Comment 7•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/077597e9accd
http://hg.mozilla.org/mozilla-central/rev/ed1946447c5e
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Updated•13 years ago
|
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•