Skip to content
  • adele's avatar
    LayoutTests: · a82b0b23
    adele authored
            Reviewed by Brady.
    
            Test for http://bugs.webkit.org/show_bug.cgi?id=12599
            <rdar://problem/4973507> REGRESSION: When replying in Gmail, the caret disappears when you start to type (12599)
    
            * fast/frames/iframe-window-focus-expected.txt: Added.
            * fast/frames/iframe-window-focus.html: Added.
    
    WebCore:
    
            Reviewed by Brady.
    
            Fix for http://bugs.webkit.org/show_bug.cgi?id=12599
            <rdar://problem/4973507> REGRESSION: When replying in Gmail, the caret disappears when you start to type (12599)
    
            When a frame's window was focused, the page didn't get updated about the new frame getting focus.
            This was causing handleKeyPress to fail because it kept getting a selection for the wrong frame (which wasn't editable).
    
            Test: fast/frames/iframe-window-focus.html
    
            * page/Frame.cpp:
            (WebCore::Frame::focusWindow):
            (WebCore::Frame::unfocusWindow):
            * page/Frame.h:
            * page/mac/FrameMac.mm:
            (WebCore::FrameMac::focusWindow):
            (WebCore::FrameMac::unfocusWindow):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a82b0b23