Closed
Bug 401160
Opened 17 years ago
Closed 17 years ago
Infinite-recursion crash calling focus() involving label, legend, contenteditable
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: crash, testcase)
Attachments
(4 files)
211 bytes,
application/xhtml+xml
|
Details | |
5.14 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
2.05 KB,
patch
|
Details | Diff | Splinter Review | |
7.19 KB,
patch
|
Details | Diff | Splinter Review |
Loading the testcase makes Firefox crash due to running out of stack space.
...
106 nsHTMLLegendElement::SetFocus (nsHTMLLegendElement.cpp:272)
107 nsHTMLLabelElement::SetFocus (nsHTMLLabelElement.cpp:276)
108 nsEventStateManager::ChangeFocusWith (nsEventStateManager.cpp:3285)
109 nsEventStateManager::ShiftFocusInternal (nsEventStateManager.cpp:3570)
110 nsEventStateManager::ShiftFocus (nsEventStateManager.cpp:3365)
111 nsFocusController::MoveFocus (nsFocusController.cpp:327)
112 nsHTMLLegendElement::SetFocus (nsHTMLLegendElement.cpp:272)
...
Assignee | ||
Updated•17 years ago
|
Component: Editor → Event Handling
OS: Mac OS X → All
QA Contact: editor → events
Hardware: PC → All
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → mats.palmgren
Assignee | ||
Comment 1•17 years ago
|
||
Ignore recursive invocation of SetFocus()
Attachment #286299 -
Flags: superreview?(peterv)
Attachment #286299 -
Flags: review?(peterv)
Assignee | ||
Comment 2•17 years ago
|
||
Better description:
Ignore recursive invocation of SetFocus() on the same element.
Assignee | ||
Comment 3•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Flags: in-testsuite?
Comment 4•17 years ago
|
||
Comment on attachment 286299 [details] [diff] [review]
Patch rev. 1
>Index: content/html/content/src/nsHTMLLabelElement.cpp
>===================================================================
>+ PRPackedBool mHandlingEvent :1;
>+ PRPackedBool mInSetFocus :1;
No need for bitfields, just use plain PRPackedBools.
Attachment #286299 -
Flags: superreview?(peterv)
Attachment #286299 -
Flags: superreview+
Attachment #286299 -
Flags: review?(peterv)
Attachment #286299 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #286299 -
Flags: approval1.9?
Comment 5•17 years ago
|
||
Comment on attachment 286299 [details] [diff] [review]
Patch rev. 1
approving crash fix..
Attachment #286299 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
Assignee | ||
Comment 7•17 years ago
|
||
mozilla/content/html/content/src/nsHTMLLabelElement.cpp 1.106
mozilla/content/html/content/src/nsHTMLLegendElement.cpp 1.70
mozilla/content/html/content/test/Makefile.in 1.32
mozilla/content/html/content/test/test_bug401160.xhtml 1.1
-> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M10
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•