Closed
Bug 635636
Opened 13 years ago
Closed 13 years ago
Crash [@ nsHTMLEditRules::DocumentModifiedWorker] with navigated-away designMode document
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla2.0b12
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: crash, regression, testcase, Whiteboard: [softblocker])
Crash Data
Attachments
(4 files, 1 obsolete file)
596 bytes,
text/html
|
Details | |
43.84 KB,
text/plain
|
Details | |
842 bytes,
patch
|
ehsan.akhgari
:
review+
ehsan.akhgari
:
approval2.0+
|
Details | Diff | Splinter Review |
3.07 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Might be related to bug 634291, which also involved navigated-away designMode documents.
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Nominating for blocking because crossfuzz might hit this a lot (see bug 635539).
blocking2.0: --- → ?
Assignee | ||
Comment 3•13 years ago
|
||
When the editor goes away it calls nsHTMLEditRules::DetachEditor() which nulls out 'mHTMLEditor'. So a null-check should be safe here.
Assignee: nobody → matspal
Attachment #513893 -
Flags: review?(ehsan)
Assignee | ||
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Updated•13 years ago
|
Comment 4•13 years ago
|
||
Comment on attachment 513893 [details] [diff] [review] fix (In reply to comment #3) > Created attachment 513893 [details] [diff] [review] > fix > > When the editor goes away it calls nsHTMLEditRules::DetachEditor() > which nulls out 'mHTMLEditor'. So a null-check should be safe here. Indeed!
Attachment #513893 -
Flags: review?(ehsan) → review+
Comment 5•13 years ago
|
||
Comment on attachment 513893 [details] [diff] [review] fix I'm going to write a test for this too, and will land both patches soon.
Attachment #513893 -
Flags: approval2.0+
Comment 6•13 years ago
|
||
The test is taking longer than I expected (trying to get rid of the timeouts and still crash in a non-patched build), so I landed the patch itself for now. http://hg.mozilla.org/mozilla-central/rev/b63a30d564e0
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
Assignee | ||
Comment 8•13 years ago
|
||
Apparently the method signature was changed, so I pushed the following bustage fix: void nsHTMLEditRules::DocumentModifiedWorker() { if (!mHTMLEditor) { - return NS_OK; + return; http://hg.mozilla.org/mozilla-central/rev/8fa0a465d15b
Comment 9•13 years ago
|
||
Attachment #514074 -
Flags: review?(roc)
Comment 10•13 years ago
|
||
roc: ping?
Comment on attachment 514074 [details] [diff] [review] Tests This needs to be a chrome test and not use enablePrivilege.
Attachment #514074 -
Flags: review?(roc) → review-
Comment 12•13 years ago
|
||
Converted the test to a chrome test.
Attachment #514074 -
Attachment is obsolete: true
Attachment #519932 -
Flags: review?(roc)
Attachment #519932 -
Flags: review?(roc) → review+
Comment 13•13 years ago
|
||
Test case: http://hg.mozilla.org/mozilla-central/rev/a32d776346b5
No longer depends on: post2.0
Flags: in-testsuite? → in-testsuite+
Updated•13 years ago
|
Crash Signature: [@ nsHTMLEditRules::DocumentModifiedWorker]
You need to log in
before you can comment on or make changes to this bug.
Description
•