-
yael.aharon@nokia.com authored
Reviewed by Antonio Gomes. Spatial Navigation: Crash when handling iframe of size 0. https://bugs.webkit.org/show_bug.cgi?id=50730 * fast/spatial-navigation/snav-hidden-iframe-zero-size-expected.txt: Added. * fast/spatial-navigation/snav-hidden-iframe-zero-size.html: Added. 2010-12-09 Yael Aharon <yael.aharon@nokia.com> Reviewed by Antonio Gomes. Spatial Navigation: Crash when handling iframe of size 0. https://bugs.webkit.org/show_bug.cgi?id=50730 if we have a frame of size 0, we would get into infinite loop and eventually crash. The reason is that when the algorithm sees a starting rect of size 0, it assumes that there is no focused node, thus restarts itself. The solution is to avoid considering iframes with size 0 for the spatial navigation algorithm. Test: fast/spatial-navigation/snav-hidden-iframe-zero-size.html * page/FocusController.cpp: (WebCore::updateFocusCandidateIfNeeded): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a2bd2744