⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130662 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 11:40:58 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
​https://bugs.webkit.org/show_bug.cgi?id=98638

Patch by Sudarsana Nagineni <​sudarsana.nagineni@intel.com> on 2012-10-08
Reviewed by Eric Seidel.

Source/WebKit2:

Add implementation for testRunner.dispatchPendingLoadRequests in
WebKitTestRunner.

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

(WKBundleDispatchPendingLoadRequests):

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

(WebKit::InjectedBundle::dispatchPendingLoadRequests):
(WebKit):

  • WebProcess/InjectedBundle/InjectedBundle.h:

(InjectedBundle):

Tools:

Add implementation for testRunner.dispatchPendingLoadRequests in
WebKitTestRunner.

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

(WTR::TestRunner::dispatchPendingLoadRequests):
(WTR):

  • WebKitTestRunner/InjectedBundle/TestRunner.h:

(TestRunner):

LayoutTests:

Unskip http/tests/loading/deleted-host-in-resource-load-delegate-callback.html

  • platform/wk2/TestExpectations:
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r130661 r130662  
     12012-10-08  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
     2
     3        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
     4        https://bugs.webkit.org/show_bug.cgi?id=98638
     5
     6        Reviewed by Eric Seidel.
     7
     8        Unskip http/tests/loading/deleted-host-in-resource-load-delegate-callback.html
     9
     10        * platform/wk2/TestExpectations:
     11
    1122012-10-08  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
    213
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r130568 r130662  
    810810http/tests/misc/redirect-to-external-url.html
    811811
    812 # WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
    813 http/tests/loading/deleted-host-in-resource-load-delegate-callback.html
    814 
    815812### END OF (2) Classified failures without bug reports (yet)
    816813########################################
  • trunk/Source/WebKit2/ChangeLog

    r130642 r130662  
     12012-10-08  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
     2
     3        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
     4        https://bugs.webkit.org/show_bug.cgi?id=98638
     5
     6        Reviewed by Eric Seidel.
     7
     8        Add implementation for testRunner.dispatchPendingLoadRequests in
     9        WebKitTestRunner.
     10
     11        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     12        (WKBundleDispatchPendingLoadRequests):
     13        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
     14        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     15        (WebKit::InjectedBundle::dispatchPendingLoadRequests):
     16        (WebKit):
     17        * WebProcess/InjectedBundle/InjectedBundle.h:
     18        (InjectedBundle):
     19
    1202012-10-08  Carlos Garcia Campos  <cgarcia@igalia.com>
    221
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r130568 r130662  
    329329    toImpl(bundleRef)->setSerialLoadingEnabled(enabled);
    330330}
     331
     332void WKBundleDispatchPendingLoadRequests(WKBundleRef bundleRef)
     333{
     334    toImpl(bundleRef)->dispatchPendingLoadRequests();
     335}
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r130568 r130662  
    115115WK_EXPORT void WKBundleSetTabKeyCyclesThroughElements(WKBundleRef bundle, WKBundlePageRef page, bool enabled);
    116116WK_EXPORT void WKBundleSetSerialLoadingEnabled(WKBundleRef bundle, bool enabled);
     117WK_EXPORT void WKBundleDispatchPendingLoadRequests(WKBundleRef bundle);
    117118
    118119#ifdef __cplusplus
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r130568 r130662  
    653653}
    654654
     655void InjectedBundle::dispatchPendingLoadRequests()
     656{
     657    resourceLoadScheduler()->servePendingRequests();
     658}
     659
    655660} // namespace WebKit
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r130568 r130662  
    181181    void setTabKeyCyclesThroughElements(WebPage*, bool enabled);
    182182    void setSerialLoadingEnabled(bool);
     183    void dispatchPendingLoadRequests();
    183184
    184185private:
  • trunk/Tools/ChangeLog

    r130660 r130662  
     12012-10-08  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
     2
     3        [WK2][WTR] WebKitTestRunner needs testRunner.dispatchPendingLoadRequests
     4        https://bugs.webkit.org/show_bug.cgi?id=98638
     5
     6        Reviewed by Eric Seidel.
     7
     8        Add implementation for testRunner.dispatchPendingLoadRequests in
     9        WebKitTestRunner.
     10
     11        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
     12        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
     13        (WTR::TestRunner::dispatchPendingLoadRequests):
     14        (WTR):
     15        * WebKitTestRunner/InjectedBundle/TestRunner.h:
     16        (TestRunner):
     17
    1182012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
    219
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl

    r130568 r130662  
    7474        void setTabKeyCyclesThroughElements(in boolean enabled);
    7575        void setSerializeHTTPLoads();
     76        void dispatchPendingLoadRequests();
    7677
    7778        // Special DOM functions.
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp

    r130612 r130662  
    755755}
    756756
     757void TestRunner::dispatchPendingLoadRequests()
     758{
     759    WKBundleDispatchPendingLoadRequests(InjectedBundle::shared().bundle());
     760}
     761
    757762void TestRunner::grantWebNotificationPermission(JSStringRef origin)
    758763{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h

    r130568 r130662  
    112112    void setTabKeyCyclesThroughElements(bool);
    113113    void setSerializeHTTPLoads();
     114    void dispatchPendingLoadRequests();
    114115
    115116    // Special DOM functions.
Note: See TracChangeset for help on using the changeset viewer.