Closed
Bug 207572
Opened 22 years ago
Closed 15 years ago
crash with caret being at invalid position
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: KaiE, Unassigned)
Details
(Keywords: crash, Whiteboard: [needs retesting on Linux with Seamonkey])
Attachments
(1 file)
|
780 bytes,
patch
|
Details | Diff | Splinter Review |
Using the patch in 200416, I can crash Mozilla using the editor, by loading
attachment 123082 [details] in the editor, hit DEL 4 times (which places the caret at the
famous invalid position halfways hidden) and hit arrow down.
The crash is in nsHTMLCSSUtils::IsCSSEditableProperty, line
content->GetTag()
content is NULL, because aNode is of type nsHTMLDocument.
I suggest to add a null check after the attempt to obtain content, and returning
a failure if we get null.
| Reporter | ||
Comment 1•22 years ago
|
||
This crash is an effect of text being placed after the </body> tag.
But I wonder if we should check in the following patch anyway.
| Reporter | ||
Updated•22 years ago
|
Attachment #124522 -
Flags: review?(glazman)
| Reporter | ||
Comment 2•22 years ago
|
||
It's not likely that I will work on editor/selection bugs in the near future.
Mass assining my bugs to nobody.
Assignee: kaie → nobody
Comment 4•22 years ago
|
||
snarfing kaie's old bugs
| Reporter | ||
Updated•20 years ago
|
Attachment #124522 -
Flags: review?(daniel)
Updated•18 years ago
|
QA Contact: bugzilla → editor
Updated•18 years ago
|
Assignee: mozeditor → nobody
Comment 5•18 years ago
|
||
fixed by timeless' patch in bug 214025?
Updated•16 years ago
|
Whiteboard: [needs retesting on Linux with Seamonkey]
Comment 6•15 years ago
|
||
No longer happens on trunk.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Comment 7•15 years ago
|
||
(fixed by this code: <http://mxr.mozilla.org/mozilla-central/source/editor/libeditor/html/nsHTMLCSSUtils.cpp#340>)
You need to log in
before you can comment on or make changes to this bug.
Description
•