Changeset 60984 in webkit
- Timestamp:
- Jun 10, 2010 5:49:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r60980 r60984 1 2010-06-10 Tony Chang <tony@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 crash when focus is changed while trying to focus next element 6 https://bugs.webkit.org/show_bug.cgi?id=40407 7 8 * fast/events/focus-change-crash-expected.txt: Added. 9 * fast/events/focus-change-crash.html: Added. 10 1 11 2010-06-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/WebCore/ChangeLog
r60980 r60984 1 2010-06-10 Tony Chang <tony@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 crash when focus is changed while trying to focus next element 6 https://bugs.webkit.org/show_bug.cgi?id=40407 7 8 Test: fast/events/focus-change-crash.html 9 10 * dom/Element.cpp: 11 (WebCore::Element::focus): 12 1 13 2010-06-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 14 -
trunk/WebCore/dom/Element.cpp
r60943 r60984 1322 1322 } 1323 1323 1324 if (Page* page = doc->page()) 1324 RefPtr<Node> protect; 1325 if (Page* page = doc->page()) { 1326 // Focus and change event handlers can cause us to lose our last ref. 1327 protect = this; 1325 1328 page->focusController()->setFocusedNode(this, doc->frame()); 1329 } 1326 1330 1327 1331 // Setting the focused node above might have invalidated the layout due to scripts.
Note: See TracChangeset
for help on using the changeset viewer.