Changeset 142477 in webkit


Ignore:
Timestamp:
Feb 11, 2013 8:06:58 AM (11 years ago)
Author:
Christophe Dumez
Message:

[EFL][WKTR] Regression(r141836) fast/dom/Window/mozilla-focus-blur.html started failing
https://bugs.webkit.org/show_bug.cgi?id=109438

Reviewed by Kenneth Rohde Christiansen.

Some refactoring in r141836 caused the view not to get focus if the focused
frame is not the main one. The idea of the code was to remove focus from the
view if the focused frame was not the main one, and then focus the view again.
However, after the refactoring, the second step never happened: Focus was
removed but not given again.

  • WebKitTestRunner/efl/PlatformWebViewEfl.cpp:

(WTR::PlatformWebView::focus):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r142467 r142477  
     12013-02-11  Christophe Dumez  <ch.dumez@sisa.samsung.com>
     2
     3        [EFL][WKTR] Regression(r141836) fast/dom/Window/mozilla-focus-blur.html started failing
     4        https://bugs.webkit.org/show_bug.cgi?id=109438
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Some refactoring in r141836 caused the view not to get focus if the focused
     9        frame is not the main one. The idea of the code was to remove focus from the
     10        view if the focused frame was not the main one, and then focus the view again.
     11        However, after the refactoring, the second step never happened: Focus was
     12        removed but not given again.
     13
     14        * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
     15        (WTR::PlatformWebView::focus):
     16
    1172013-02-11  Zan Dobersek  <zdobersek@igalia.com>
    218
  • trunk/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp

    r142412 r142477  
    103103    // (WebCoreSupport::focusedFrameChanged() does not emit any notification). We then manually remove the
    104104    // focus from the view to make the call give focus to evas_object_focus_set(..., true) to be effectful.
    105     evas_object_focus_set(WKViewGetEvasObject(m_view), WKPageGetFocusedFrame(page()) == WKPageGetMainFrame(page()));
     105    if (WKPageGetFocusedFrame(page()) != WKPageGetMainFrame(page()))
     106        evas_object_focus_set(evasObject, false);
     107    evas_object_focus_set(evasObject, true);
    106108}
    107109
Note: See TracChangeset for help on using the changeset viewer.