Skip to content
  • aroben's avatar
    LayoutTests: · 39e6fb8f
    aroben authored
            Reviewed by Darin.
    
            Test for http://bugs.webkit.org/show_bug.cgi?id=12517
            <rdar://problem/4971227> REGRESSION: Tab order incorrect when input
            inside frame/iframe gets initial focus (12517)
    
            * fast/events/frame-programmatic-focus-expected.txt: Added.
            * fast/events/frame-programmatic-focus.html: Added.
            * fast/forms/focus2-expected.txt: Updated results to now-correct
            behavior.
    
    WebCore:
    
            Reviewed by Darin.
    
            Fix http://bugs.webkit.org/show_bug.cgi?id=12517
            <rdar://problem/4971227> REGRESSION: Tab order incorrect when input
            inside frame/iframe gets initial focus (12517)
    
            Test: fast/events/frame-programmatic-focus.html
    
            * dom/Element.cpp:
            (WebCore::Element::focus): Call FocusController::setFocusedNode to set
            the focus for the whole page.
            * html/HTMLInputElement.cpp:
            (WebCore::HTMLInputElement::focus): Ditto.
            * html/HTMLTextAreaElement.cpp:
            (...
    39e6fb8f