Changeset 205379 in webkit


Ignore:
Timestamp:
Sep 2, 2016 3:52:13 PM (8 years ago)
Author:
Jonathan Bedard
Message:

WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
https://bugs.webkit.org/show_bug.cgi?id=42547
Source/WebKit2:

Reviewed by Darin Adler.

Added access to setUseDashBoardCompatibilityMode for WebKit2.
Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.

  • WebProcess/InjectedBundle/API/c/WKBundle.cpp:

(WKBundleSetUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.

  • WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Ditto.
  • WebProcess/InjectedBundle/InjectedBundle.cpp:

(WebKit::InjectedBundle::setUseDashboardCompatibilityMode): Ditto.

  • WebProcess/InjectedBundle/InjectedBundle.h: Ditto.

Tools:

Reviewed by Darin Adler.

Added JavaScript bindings and C++ implementation of setUseDashboardCompatibilityMode for the WebKit2 sTestRunner.
Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.

  • WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Added dashboard compatiblity mode setter.
  • WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:

(WTR::InjectedBundle::beginTesting): Reset dashboard compatibility mode.

  • WebKitTestRunner/InjectedBundle/TestRunner.cpp:

(WTR::TestRunner::setJavaScriptCanAccessClipboard): Code style changes.
(WTR::TestRunner::setPrivateBrowsingEnabled): Code style changes.
(WTR::TestRunner::setUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
(WTR::TestRunner::setPopupBlockingEnabled): Code style changes.
(WTR::TestRunner::setAuthorAndUserStylesEnabled): Code style changes.
(WTR::TestRunner::addOriginAccessWhitelistEntry): Code style changes.

  • WebKitTestRunner/InjectedBundle/TestRunner.h: Added dashboard compatiblity mode setter.

LayoutTests:

Reviewed by Darin Adler.

The addition of setUseDashboardCompatibilityMode to the WebKit2 TestRunner means the set of tests removed from the expected failures list now pass.
Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.

  • platform/ios-simulator-wk2/TestExpectations: Changed reason test was excluded.
  • platform/wk2/TestExpectations: Remove tests which use setUseDashboardCompatibilityMode from expected failures.
Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r205376 r205379  
     12016-09-02  Jonathan Bedard  <jbedard@apple.com>
     2
     3        WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
     4        https://bugs.webkit.org/show_bug.cgi?id=42547
     5
     6        Reviewed by Darin Adler.
     7
     8        The addition of setUseDashboardCompatibilityMode to the WebKit2 TestRunner means the set of tests removed from the expected failures list now pass.
     9        Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
     10
     11        * platform/ios-simulator-wk2/TestExpectations:  Changed reason test was excluded.
     12        * platform/wk2/TestExpectations: Remove tests which use setUseDashboardCompatibilityMode from expected failures.
     13
    1142016-09-02  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations

    r205296 r205379  
    9191scrollbars/scrollbars-on-positioned-content.html [ Failure ]
    9292
    93 # WebKitTestRunner needs testRunner.setUseDashboardCompatibilityMode
    94 mathml/mathml-in-dashboard.html [ Skip ]
     93# iOS doesn’t support dashboard.
     94mathml/mathml-in-dashboard.html [ Failure ]
     95svg/custom/embedded-svg-allowed-in-dashboard.xml [ Failure ]
     96svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Failure ]
     97svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Failure ]
     98svg/custom/svg-allowed-in-dashboard-object.html [ Failure ]
     99http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Failure ]
    95100
    96101# SVG tests that time out (these require EventSender)
     
    265270imported/mozilla/svg/text/text-shadow.svg [ ImageOnlyFailure ]
    266271svg/animations/mozilla/animateMotion-mpath-targetChange-1.svg [ ImageOnlyFailure ]
    267 svg/custom/embedded-svg-allowed-in-dashboard.xml [ Failure ]
    268272svg/custom/focus-event-handling-keyboard.xhtml [ Failure ]
    269273svg/custom/focus-event-handling.xhtml [ Failure ]
     
    275279svg/custom/image-clipped-hit.svg [ Failure ]
    276280svg/custom/invisible-text-after-scrolling.xhtml [ Failure ]
    277 svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Failure ]
    278 svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Failure ]
    279281svg/custom/marker-changes.svg [ Failure ]
    280282svg/custom/non-scaling-stroke-update.svg [ ImageOnlyFailure ]
     
    286288svg/custom/polyline-hittest.svg [ Failure ]
    287289svg/custom/stroke-width-click.svg [ Failure ]
    288 svg/custom/svg-allowed-in-dashboard-object.html [ Failure ]
    289290svg/custom/svg-fonts-fallback.xhtml [ Failure ]
    290291svg/custom/text-hit-test.svg [ Failure ]
     
    377378http/tests/security/setDomainRelaxationForbiddenForURLScheme.html [ Failure ]
    378379http/tests/uri/css-href.php [ Failure ]
    379 http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Failure ]
    380380
    381381# HTTP tests that assert:
  • trunk/LayoutTests/platform/win/TestExpectations

    r204960 r205379  
    106106http/tests/xmlhttprequest/cross-origin-cookie-storage.html [ Skip ]
    107107
    108 # TODO No Dashboard compatibility mode on Windows
     108# No Dashboard compatibility mode on Windows.
    109109http/tests/xmlhttprequest/default-content-type-dashboard.html [ Skip ]
    110110http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Skip ]
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r205094 r205379  
    114114platform/mac/fast/text/justified-text-rect.html
    115115
    116 # WebKitTestRunner needs testRunner.setDashboardCompatibilityMode
    117 # <https://bugs.webkit.org/show_bug.cgi?id=42547>
    118 fast/canvas/canvas-gradient-addStop-error.html
    119 http/tests/xmlhttprequest/default-content-type-dashboard.html
    120 http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html
    121 svg/custom/embedded-svg-allowed-in-dashboard.xml
    122 svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html
    123 svg/custom/manually-parsed-svg-allowed-in-dashboard.html
    124 svg/custom/svg-allowed-in-dashboard-object.html
    125 
    126116# WebKitTestRunner needs testRunner.setMainFrameIsFirstResponder
    127117# <https://bugs.webkit.org/show_bug.cgi?id=42685>
     
    302292fast/frames/location-redirect-user-gesture.html
    303293fast/frames/meta-refresh-user-gesture.html
    304 
    305 # WebKitTestRunner needs testRunner.setUseDashboardCompatibilityMode
    306 platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html [ Skip ]
    307 mathml/mathml-in-dashboard.html [ Skip ]
    308294
    309295# WebKitTestRunner needs testRunner.addURLToRedirect
  • trunk/Source/WebKit2/ChangeLog

    r205378 r205379  
     12016-09-02  Jonathan Bedard  <jbedard@apple.com>
     2
     3        WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
     4        https://bugs.webkit.org/show_bug.cgi?id=42547
     5
     6        Reviewed by Darin Adler.
     7
     8        Added access to setUseDashBoardCompatibilityMode for WebKit2.
     9        Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
     10
     11        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     12        (WKBundleSetUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
     13        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Ditto.
     14        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     15        (WebKit::InjectedBundle::setUseDashboardCompatibilityMode): Ditto.
     16        * WebProcess/InjectedBundle/InjectedBundle.h: Ditto.
     17
    1182016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
    219
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r205094 r205379  
    166166}
    167167
     168void WKBundleSetUseDashboardCompatibilityMode(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
     169{
     170    toImpl(bundleRef)->setUseDashboardCompatibilityMode(toImpl(pageGroupRef), enabled);
     171}
     172
    168173void WKBundleSetPopupBlockingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
    169174{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r205094 r205379  
    5252WK_EXPORT void WKBundleSetAutomaticLinkDetectionEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled);
    5353WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
     54WK_EXPORT void WKBundleSetUseDashboardCompatibilityMode(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    5455WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    5556WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r205094 r205379  
    328328}
    329329
     330void InjectedBundle::setUseDashboardCompatibilityMode(WebPageGroupProxy* pageGroup, bool enabled)
     331{
     332#if ENABLE(DASHBOARD_SUPPORT)
     333    for (auto& page : PageGroup::pageGroup(pageGroup->identifier())->pages())
     334        page->settings().setUsesDashboardBackwardCompatibilityMode(enabled);
     335#endif
     336}
     337
    330338void InjectedBundle::setPopupBlockingEnabled(WebPageGroupProxy* pageGroup, bool enabled)
    331339{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r205094 r205379  
    109109    void setAutomaticLinkDetectionEnabled(WebPageGroupProxy*, bool enabled);
    110110    void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool);
     111    void setUseDashboardCompatibilityMode(WebPageGroupProxy*, bool);
    111112    void setPopupBlockingEnabled(WebPageGroupProxy*, bool);
    112113    void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool);
  • trunk/Tools/ChangeLog

    r205367 r205379  
     12016-09-02  Jonathan Bedard  <jbedard@apple.com>
     2
     3        WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
     4        https://bugs.webkit.org/show_bug.cgi?id=42547
     5 
     6        Reviewed by Darin Adler.
     7
     8        Added JavaScript bindings and C++ implementation of setUseDashboardCompatibilityMode for the WebKit2 sTestRunner.
     9        Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
     10
     11        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Added dashboard compatiblity mode setter.
     12        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
     13        (WTR::InjectedBundle::beginTesting): Reset dashboard compatibility mode.
     14        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
     15        (WTR::TestRunner::setJavaScriptCanAccessClipboard): Code style changes.
     16        (WTR::TestRunner::setPrivateBrowsingEnabled): Code style changes.
     17        (WTR::TestRunner::setUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
     18        (WTR::TestRunner::setPopupBlockingEnabled): Code style changes.
     19        (WTR::TestRunner::setAuthorAndUserStylesEnabled): Code style changes.
     20        (WTR::TestRunner::addOriginAccessWhitelistEntry): Code style changes.
     21        * WebKitTestRunner/InjectedBundle/TestRunner.h: Added dashboard compatiblity mode setter.
     22
    1232016-09-02  Jer Noble  <jer.noble@apple.com>
    224
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl

    r205094 r205379  
    6565    void setAutomaticLinkDetectionEnabled(boolean value);
    6666    void setPrivateBrowsingEnabled(boolean value);
     67    void setUseDashboardCompatibilityMode(boolean value);
    6768    void setPopupBlockingEnabled(boolean value);
    6869    void setAuthorAndUserStylesEnabled(boolean value);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp

    r205094 r205379  
    297297    WKBundleSetAutomaticLinkDetectionEnabled(m_bundle, m_pageGroup, false);
    298298    WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false);
     299    WKBundleSetUseDashboardCompatibilityMode(m_bundle, m_pageGroup, false);
    299300    WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true);
    300301    WKBundleSetFrameFlatteningEnabled(m_bundle, m_pageGroup, false);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp

    r205123 r205379  
    409409{
    410410    auto& injectedBundle = InjectedBundle::singleton();
    411      WKBundleSetJavaScriptCanAccessClipboard(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
     411    WKBundleSetJavaScriptCanAccessClipboard(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
    412412}
    413413
     
    421421{
    422422    auto& injectedBundle = InjectedBundle::singleton();
    423      WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
    424 }
    425 
     423    WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
     424}
     425
     426void TestRunner::setUseDashboardCompatibilityMode(bool enabled)
     427{
     428#if ENABLE(DASHBOARD_SUPPORT)
     429    auto& injectedBundle = InjectedBundle::singleton();
     430    WKBundleSetUseDashboardCompatibilityMode(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
     431#endif
     432}
     433   
    426434void TestRunner::setPopupBlockingEnabled(bool enabled)
    427435{
    428436    auto& injectedBundle = InjectedBundle::singleton();
    429      WKBundleSetPopupBlockingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
     437    WKBundleSetPopupBlockingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
    430438}
    431439
     
    433441{
    434442    auto& injectedBundle = InjectedBundle::singleton();
    435      WKBundleSetAuthorAndUserStylesEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
     443    WKBundleSetAuthorAndUserStylesEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
    436444}
    437445
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h

    r205094 r205379  
    112112    void setAutomaticLinkDetectionEnabled(bool);
    113113    void setPrivateBrowsingEnabled(bool);
     114    void setUseDashboardCompatibilityMode(bool);
    114115    void setPopupBlockingEnabled(bool);
    115116    void setAuthorAndUserStylesEnabled(bool);
Note: See TracChangeset for help on using the changeset viewer.