Changeset 73634 in webkit
- Timestamp:
- Dec 9, 2010 11:36:44 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73633 r73634 1 2010-12-09 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Antonio Gomes. 4 5 Spatial Navigation: Crash when handling iframe of size 0. 6 https://bugs.webkit.org/show_bug.cgi?id=50730 7 8 * fast/spatial-navigation/snav-hidden-iframe-zero-size-expected.txt: Added. 9 * fast/spatial-navigation/snav-hidden-iframe-zero-size.html: Added. 10 1 11 2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/WebCore/ChangeLog
r73633 r73634 1 2010-12-09 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Antonio Gomes. 4 5 Spatial Navigation: Crash when handling iframe of size 0. 6 https://bugs.webkit.org/show_bug.cgi?id=50730 7 8 if we have a frame of size 0, we would get into infinite loop and eventually crash. The reason is 9 that when the algorithm sees a starting rect of size 0, it assumes that there is no focused node, 10 thus restarts itself. The solution is to avoid considering iframes with size 0 for the spatial 11 navigation algorithm. 12 13 Test: fast/spatial-navigation/snav-hidden-iframe-zero-size.html 14 15 * page/FocusController.cpp: 16 (WebCore::updateFocusCandidateIfNeeded): 17 1 18 2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com> 2 19 -
trunk/WebCore/page/FocusController.cpp
r73627 r73634 421 421 422 422 // Ignore iframes that don't have a src attribute 423 if (candidate.visibleNode->isFrameOwnerElement() && !static_cast<HTMLFrameOwnerElement*>(candidate.visibleNode)->contentFrame())423 if (candidate.visibleNode->isFrameOwnerElement() && (!static_cast<HTMLFrameOwnerElement*>(candidate.visibleNode)->contentFrame() || candidate.rect.isEmpty())) 424 424 return; 425 425
Note: See TracChangeset
for help on using the changeset viewer.