-
mjs@apple.com authored
Reviewed by Dan Bernstein. Some WebKit2 layout tests crash due to focus being on a frame in the page cache https://bugs.webkit.org/show_bug.cgi?id=52607 No new tests. Existing tests crash in WebKit2 without this fix. I suspect there are other consequences besides the WebKit2 crash, but I was unable to identify any for certain. * history/CachedFrame.cpp: (WebCore::CachedFrame::CachedFrame): If a frame still has focus when its page goes in the page cache, reset focus to the main frame. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7e42b490