Changeset 110028 in webkit


Ignore:
Timestamp:
Mar 6, 2012 11:54:34 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][DRT] Implements LayoutTestController's setPopupBlockingEnabled.
https://bugs.webkit.org/show_bug.cgi?id=80137

Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2012-03-06
Reviewed by Eric Seidel.

Tools:

Adds implementation LayoutTestController's setPopupBlockingEnabled.
To pass popup-blocking-click-in-iframe.html EventSender should not
repeat click events in idler's function. EventSender allows to
asynchronously send click event through ecore_idler_add.
This event will be called repeatedly as long as it return true.
Click event should be called only once by returning ECORE_CALLBACK_CANCEL.

  • DumpRenderTree/efl/EventSender.cpp:

(sendMouseEvent): Changed return value from bool to void because it always returns true.
(sendClick): Idler is deleted by returning ECORE_CALLBACK_CANCEL.
(mouseDownCallback): Remove unnecessary checking of return value.

  • DumpRenderTree/efl/LayoutTestControllerEfl.cpp:

(LayoutTestController::setPopupBlockingEnabled):

LayoutTests:

Enables tests connected with setPopupBlockingEnabled.

  • platform/efl/Skipped:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r110027 r110028  
     12012-03-06  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
     2
     3        [EFL][DRT] Implements LayoutTestController's setPopupBlockingEnabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=80137
     5
     6        Reviewed by Eric Seidel.
     7
     8        Enables tests connected with setPopupBlockingEnabled.
     9
     10        * platform/efl/Skipped:
     11
    1122012-03-06  Philippe Normand  <pnormand@igalia.com>
    213
  • trunk/LayoutTests/platform/efl/Skipped

    r109538 r110028  
    554554editing/selection/doubleclick-whitespace-img-crash.html
    555555editing/selection/doubleclick-whitespace.html
    556 
    557 # EFL's LayoutTestController does not implement setPopupBlockingEnabled
    558 fast/events/open-window-from-another-frame.html
    559 fast/events/popup-allowed-from-gesture-initiated-event.html
    560 fast/events/popup-allowed-from-gesture-initiated-form-submit.html
    561 fast/events/popup-blocked-from-fake-button-click.html
    562 fast/events/popup-blocked-from-fake-focus.html
    563 fast/events/popup-blocked-from-fake-user-gesture.html
    564 fast/events/popup-blocked-from-history-reload.html
    565 fast/events/popup-blocked-from-iframe-script.html
    566 fast/events/popup-blocked-from-iframe-src.html
    567 fast/events/popup-blocked-from-mousemove.html
    568 fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html
    569 fast/events/popup-blocked-from-untrusted-mouse-click.html
    570 fast/events/popup-blocked-from-window-open.html
    571 fast/events/popup-blocked-to-post-blank.html
    572 fast/events/popup-blocking-click-in-iframe.html
    573 fast/events/popup-blocking-timers.html
    574 fast/events/popup-when-select-change.html
    575556
    576557# EFL's LayoutTestController does not implement elementDoesAutoCompleteForElementWithId
  • trunk/Tools/ChangeLog

    r109996 r110028  
     12012-03-06  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
     2
     3        [EFL][DRT] Implements LayoutTestController's setPopupBlockingEnabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=80137
     5
     6        Reviewed by Eric Seidel.
     7
     8        Adds implementation LayoutTestController's setPopupBlockingEnabled.
     9        To pass popup-blocking-click-in-iframe.html EventSender should not
     10        repeat click events in idler's function. EventSender allows to
     11        asynchronously send click event through ecore_idler_add.
     12        This event will be called repeatedly as long as it return true.
     13        Click event should be called only once by returning ECORE_CALLBACK_CANCEL.
     14
     15        * DumpRenderTree/efl/EventSender.cpp:
     16        (sendMouseEvent): Changed return value from bool to void because it always returns true.
     17        (sendClick): Idler is deleted by returning ECORE_CALLBACK_CANCEL.
     18        (mouseDownCallback): Remove unnecessary checking of return value.
     19        * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
     20        (LayoutTestController::setPopupBlockingEnabled):
     21
    1222012-03-06  Dirk Pranke  <dpranke@chromium.org>
    223
  • trunk/Tools/DumpRenderTree/efl/EventSender.cpp

    r107529 r110028  
    131131}
    132132
    133 static bool sendMouseEvent(Evas* evas, EvasMouseEvent event, int buttonNumber, EvasKeyModifier modifiers)
     133static void sendMouseEvent(Evas* evas, EvasMouseEvent event, int buttonNumber, EvasKeyModifier modifiers)
    134134{
    135135    unsigned timeStamp = 0;
     
    156156
    157157    setEvasModifiers(evas, EvasKeyModifierNone);
    158 
    159     return true;
    160158}
    161159
    162160static Eina_Bool sendClick(void*)
    163161{
    164     return !!sendMouseEvent(evas_object_evas_get(browser->mainFrame()), EvasMouseEventClick, EvasMouseButtonLeft, EvasKeyModifierNone);
     162    sendMouseEvent(evas_object_evas_get(browser->mainFrame()), EvasMouseEventClick, EvasMouseButtonLeft, EvasKeyModifierNone);
     163    return ECORE_CALLBACK_CANCEL;
    165164}
    166165
     
    233232
    234233    EvasKeyModifier modifiers = argumentCount >= 2 ? modifiersFromJSValue(context, arguments[1]) : EvasKeyModifierNone;
    235     if (!sendMouseEvent(evas_object_evas_get(browser->mainFrame()), EvasMouseEventDown, button, modifiers))
    236         return JSValueMakeUndefined(context);
     234    sendMouseEvent(evas_object_evas_get(browser->mainFrame()), EvasMouseEventDown, button, modifiers);
    237235
    238236    gButtonCurrentlyDown = button;
  • trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp

    r108806 r110028  
    437437}
    438438
    439 void LayoutTestController::setPopupBlockingEnabled(bool)
    440 {
    441     notImplemented();
     439void LayoutTestController::setPopupBlockingEnabled(bool flag)
     440{
     441    ewk_view_setting_scripts_can_open_windows_set(browser->mainView(), !flag);
    442442}
    443443
Note: See TracChangeset for help on using the changeset viewer.