Closed
Bug 454114
Opened 17 years ago
Closed 17 years ago
Infinite recursion in crashtest setting up editor
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
References
Details
Attachments
(1 file)
|
5.94 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
I ran crashtests locally and hit an infinite recursion crash. Here's the repeating part of the stack:
#81362 0x12cef5b9 in mozAutoDocUpdate::~mozAutoDocUpdate (this=0xbfffafd4) at mozAutoDocUpdate.h:66
#81363 0x12cef5f1 in mozAutoDocUpdate::~mozAutoDocUpdate (this=0xbfffafd4) at mozAutoDocUpdate.h:74
#81364 0x12de288c in nsCSSStyleSheet::SetDisabled (this=0x1e7f7730, aDisabled=0) at /Users/roc/mozilla-checkin/layout/style/nsCSSStyleSheet.cpp:1653
#81365 0x13453f6a in nsHTMLEditor::EnableExistingStyleSheet (this=0xaa0a00, aURL=@0xbfffb160) at /Users/roc/mozilla-checkin/editor/libeditor/html/nsHTMLEditor.cpp:3710
#81366 0x1345481f in nsHTMLEditor::AddOverrideStyleSheet (this=0xaa0a00, aURL=@0xbfffb160) at /Users/roc/mozilla-checkin/editor/libeditor/html/nsHTMLEditor.cpp:3592
#81367 0x1307592e in nsHTMLDocument::EditingStateChanged (this=0xc01e00) at /Users/roc/mozilla-checkin/content/html/document/src/nsHTMLDocument.cpp:3376
#81368 0x1307695c in nsHTMLDocument::EndUpdate (this=0xc01e00, aUpdateType=2) at /Users/roc/mozilla-checkin/content/html/document/src/nsHTMLDocument.cpp:3081
#81369 0x12cef5b9 in mozAutoDocUpdate::~mozAutoDocUpdate (this=0xbfffb2a4) at mozAutoDocUpdate.h:66
#81370 0x12cef5f1 in mozAutoDocUpdate::~mozAutoDocUpdate (this=0xbfffb2a4) at mozAutoDocUpdate.h:74
If you look at the code, this is fairly self-explanatory. There are various ways to fix this, e.g. make SetDisabled avoid doing an nsAutoDocUpdate if aDisabled == mIsDisabled, but I think the best way is to extend the re-entry check in EditingStateChanged.
Attachment #337361 -
Flags: superreview?(jst)
Attachment #337361 -
Flags: review?(jst)
Updated•17 years ago
|
Attachment #337361 -
Flags: superreview?(jst)
Attachment #337361 -
Flags: superreview+
Attachment #337361 -
Flags: review?(jst)
Attachment #337361 -
Flags: review+
| Assignee | ||
Comment 1•17 years ago
|
||
Pushed adcd0ee05739.
Marking in-testsuite+ since I found this by running crashtests.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•