Changeset 128600 in webkit


Ignore:
Timestamp:
Sep 14, 2012 6:09:06 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
https://bugs.webkit.org/show_bug.cgi?id=42546

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-09-14
Reviewed by Kenneth Rohde Christiansen.

Tools:

Exported TestRunner::setCustomPolicyDelegate() method.
Allowed Policy Delegate dumping even if we're not in 'waitUntilDone' mode.

  • WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::decidePolicyForNavigationAction):

LayoutTests:

Unskipped corresponding test cases. Distributed those which still not passing to appropriate groups in Skipped file.

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r128594 r128600  
     12012-09-14  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
     2
     3        WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
     4        https://bugs.webkit.org/show_bug.cgi?id=42546
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Unskipped corresponding test cases. Distributed those which still not passing to appropriate groups in Skipped file.
     9
     10        * platform/wk2/Skipped:
     11
    1122012-09-14  Keishi Hattori  <keishi@webkit.org>
    213
  • trunk/LayoutTests/platform/wk2/Skipped

    r128585 r128600  
    331331fast/dom/Geolocation/window-close-crash.html
    332332
    333 # WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
    334 # <https://bugs.webkit.org/show_bug.cgi?id=42546>
    335 fast/loader/javascript-url-hierarchical-execution.html
    336 fast/loader/onload-policy-ignore-for-frame.html
    337 fast/loader/reload-policy-delegate.html
    338 http/tests/misc/policy-delegate-called-twice.html
    339 http/tests/misc/redirect-to-external-url.html
    340 http/tests/security/feed-urls-from-remote.html
    341 http/tests/download
    342 
    343333# WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
    344334# <https://bugs.webkit.org/show_bug.cgi?id=42547>
     
    355345fast/css/compare-content-style.html
    356346fast/frames/frame-display-none-focus.html
     347fast/loader/reload-policy-delegate.html
    357348
    358349# WebKitTestRunner needs layoutTestController.queueLoad
     
    621612inspector/geolocation-watchPosition.html
    622613
     614# WebFrameLoaderClient::dispatchDecidePolicy methods should consider
     615# 'WKBundlePagePolicyActionPassThrough' policy action
     616# https://bugs.webkit.org/show_bug.cgi?id=95974
     617fast/loader/onload-policy-ignore-for-frame.html
     618
    623619### END OF (1) Classified failures with bug reports
    624620########################################
     
    869865fast/spatial-navigation/snav-iframe-no-scrollable-content.html
    870866fast/spatial-navigation/snav-imagemap-overlapped-areas.html
     867
     868# WK2 is missing API for getting header fields from HTTP responses
     869# which have to be serialized.
     870http/tests/download
     871
     872# WebFrameLoaderClient::canHandleRequest() has to be implemented.
     873http/tests/misc/redirect-to-external-url.html
    871874
    872875### END OF (2) Classified failures without bug reports (yet)
     
    11241127http/tests/loading/pdf-commit-load-callbacks.html
    11251128
     1129# Times out unexpectedly.
     1130http/tests/security/feed-urls-from-remote.html
     1131
    11261132### END OF (3) Unclassified failures
    11271133########################################
  • trunk/Tools/ChangeLog

    r128596 r128600  
     12012-09-14  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
     2
     3        WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
     4        https://bugs.webkit.org/show_bug.cgi?id=42546
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Exported TestRunner::setCustomPolicyDelegate() method.
     9        Allowed Policy Delegate dumping even if we're not in 'waitUntilDone' mode.
     10
     11        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
     12        * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
     13        (WTR::InjectedBundlePage::decidePolicyForNavigationAction):
     14
    1152012-09-14  Zan Dobersek  <zandobersek@gmail.com>
    216
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl

    r128491 r128600  
    6565        void setPopupBlockingEnabled(in boolean value);
    6666        void setAuthorAndUserStylesEnabled(in boolean value);
     67        void setCustomPolicyDelegate(in boolean enabled, in boolean permissive);
    6768        void addOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains);
    6869        void removeOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r128585 r128600  
    12651265        return WKBundlePagePolicyActionUse;
    12661266
    1267     if (InjectedBundle::shared().testRunner()->waitToDump()) {
    1268         WKRetainPtr<WKStringRef> url = adoptWK(WKURLCopyString(WKURLRequestCopyURL(request)));
    1269         InjectedBundle::shared().stringBuilder()->appendLiteral("Policy delegate: attempt to load ");
    1270         InjectedBundle::shared().stringBuilder()->append(toWTFString(url));
    1271         InjectedBundle::shared().stringBuilder()->appendLiteral(" with navigation type \'");
    1272         InjectedBundle::shared().stringBuilder()->append(toWTFString(NavigationTypeToString(WKBundleNavigationActionGetNavigationType(navigationAction))));
    1273         InjectedBundle::shared().stringBuilder()->appendLiteral("\'");
    1274         WKBundleHitTestResultRef hitTestResultRef = WKBundleNavigationActionCopyHitTestResult(navigationAction);
    1275         if (hitTestResultRef) {
    1276             InjectedBundle::shared().stringBuilder()->appendLiteral(" originating from ");
    1277             InjectedBundle::shared().stringBuilder()->append(dumpPath(m_page, m_world.get(), WKBundleHitTestResultCopyNodeHandle(hitTestResultRef)));
    1278         }
    1279 
    1280         InjectedBundle::shared().stringBuilder()->append('\n');
    1281         InjectedBundle::shared().testRunner()->notifyDone();
    1282     }
     1267    WKRetainPtr<WKStringRef> url = adoptWK(WKURLCopyString(WKURLRequestCopyURL(request)));
     1268    InjectedBundle::shared().stringBuilder()->appendLiteral("Policy delegate: attempt to load ");
     1269    InjectedBundle::shared().stringBuilder()->append(toWTFString(url));
     1270    InjectedBundle::shared().stringBuilder()->appendLiteral(" with navigation type \'");
     1271    InjectedBundle::shared().stringBuilder()->append(toWTFString(NavigationTypeToString(WKBundleNavigationActionGetNavigationType(navigationAction))));
     1272    InjectedBundle::shared().stringBuilder()->appendLiteral("\'");
     1273    WKBundleHitTestResultRef hitTestResultRef = WKBundleNavigationActionCopyHitTestResult(navigationAction);
     1274    if (hitTestResultRef) {
     1275        InjectedBundle::shared().stringBuilder()->appendLiteral(" originating from ");
     1276        InjectedBundle::shared().stringBuilder()->append(dumpPath(m_page, m_world.get(), WKBundleHitTestResultCopyNodeHandle(hitTestResultRef)));
     1277    }
     1278
     1279    InjectedBundle::shared().stringBuilder()->append('\n');
     1280    InjectedBundle::shared().testRunner()->notifyDone();
    12831281
    12841282    if (InjectedBundle::shared().testRunner()->isPolicyDelegatePermissive())
Note: See TracChangeset for help on using the changeset viewer.