-
adele authored
Reviewed by Darin. Test for http://bugs.webkit.org/show_bug.cgi?id=13796 Crash in [NSInputContext currentInputContext] when you click on this map * fast/frames/frame-display-none-focus-expected.txt: Added. * fast/frames/frame-display-none-focus.html: Added. * fast/frames/resources/iframe-focus.html: Added. WebCore: Reviewed by Darin. Fix for http://bugs.webkit.org/show_bug.cgi?id=13796 Crash in [NSInputContext currentInputContext] when you click on this map This is another case of <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts Test: fast/frames/frame-display-none-focus.html * WebCore.xcodeproj/project.pbxproj: Added ChromeMac.mm * page/Chrome.h: * page/mac/ChromeMac.mm: Added. (WebCore::Chrome::focusNSView): Moved code from Widget::setFocus so it can be used whenever we need to make a view the first responder. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView): Calls focusNSView. * platform/mac/WidgetMac.mm: (WebCore::Widget::setFocus): Calls focusNSView. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
82c11d19