Changeset 229304 in webkit


Ignore:
Timestamp:
Mar 5, 2018 7:13:32 PM (6 years ago)
Author:
Chris Dumez
Message:

fast/loader/onload-policy-ignore-for-frame.html is timing out with async policy delegates
https://bugs.webkit.org/show_bug.cgi?id=183337

Reviewed by Ryosuke Niwa.

Source/WebCore:

Make sure we call checkCompleted() before calling checkLoadComplete() in
FrameLoader::continueLoadAfterNavigationPolicy() when the client tells us
to ignore the navigation, so that we properly recognize that the load is
done. This matches what is already done in FrameLoader::receivedMainResourceError().

Test: fast/loader/onload-policy-ignore-for-frame-async-delegates.html

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::continueLoadAfterNavigationPolicy):

LayoutTests:

Add layout test coverage.

  • fast/loader/onload-policy-ignore-for-frame-async-delegates-expected.txt: Added.
  • fast/loader/onload-policy-ignore-for-frame-async-delegates.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r229297 r229304  
     12018-03-05  Chris Dumez  <cdumez@apple.com>
     2
     3        fast/loader/onload-policy-ignore-for-frame.html is timing out with async policy delegates
     4        https://bugs.webkit.org/show_bug.cgi?id=183337
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Add layout test coverage.
     9
     10        * fast/loader/onload-policy-ignore-for-frame-async-delegates-expected.txt: Added.
     11        * fast/loader/onload-policy-ignore-for-frame-async-delegates.html: Added.
     12
    1132018-03-05  Andy Estes  <aestes@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r229303 r229304  
     12018-03-05  Chris Dumez  <cdumez@apple.com>
     2
     3        fast/loader/onload-policy-ignore-for-frame.html is timing out with async policy delegates
     4        https://bugs.webkit.org/show_bug.cgi?id=183337
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Make sure we call checkCompleted() before calling checkLoadComplete() in
     9        FrameLoader::continueLoadAfterNavigationPolicy() when the client tells us
     10        to ignore the navigation, so that we properly recognize that the load is
     11        done. This matches what is already done in FrameLoader::receivedMainResourceError().
     12
     13        Test: fast/loader/onload-policy-ignore-for-frame-async-delegates.html
     14
     15        * loader/FrameLoader.cpp:
     16        (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
     17
    1182018-03-05  Myles C. Maxfield  <mmaxfield@apple.com>
    219
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r229286 r229304  
    31603160
    31613161        setPolicyDocumentLoader(nullptr);
     3162        checkCompleted();
    31623163        checkLoadComplete();
    31633164
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r229177 r229304  
    13221322    }
    13231323
    1324     if (injectedBundle.testRunner()->shouldDecideNavigationPolicyAfterDelay())
    1325         return WKBundlePagePolicyActionPassThrough;
    1326 
    13271324    if (!injectedBundle.testRunner()->isPolicyDelegateEnabled()) {
    13281325        WKRetainPtr<WKStringRef> downloadAttributeRef(AdoptWK, WKBundleNavigationActionCopyDownloadAttribute(navigationAction));
     
    13541351    stringBuilder.append('\n');
    13551352    injectedBundle.outputText(stringBuilder.toString());
     1353
     1354    if (injectedBundle.testRunner()->shouldDecideNavigationPolicyAfterDelay())
     1355        return WKBundlePagePolicyActionPassThrough;
     1356
    13561357    injectedBundle.testRunner()->notifyDone();
    13571358
Note: See TracChangeset for help on using the changeset viewer.