Changeset 244409 in webkit


Ignore:
Timestamp:
Apr 17, 2019 4:29:45 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Link prefetch not useful for top-level navigation
https://bugs.webkit.org/show_bug.cgi?id=195623

Patch by Rob Buis <rbuis@igalia.com> on 2019-04-17
Reviewed by Alex Christensen.

Fix macOS and iOS Debug WK2 bots ASSERTS after r367404, by simply
not sending the DidReceiveResponse message.

  • NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::didReceiveResponse):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244407 r244409  
     12019-04-17  Rob Buis  <rbuis@igalia.com>
     2
     3        Link prefetch not useful for top-level navigation
     4        https://bugs.webkit.org/show_bug.cgi?id=195623
     5
     6        Reviewed by Alex Christensen.
     7
     8        Fix macOS and iOS Debug WK2 bots ASSERTS after r367404, by simply
     9        not sending the DidReceiveResponse message.
     10
     11        * NetworkProcess/NetworkResourceLoader.cpp:
     12        (WebKit::NetworkResourceLoader::didReceiveResponse):
     13
    1142019-04-17  Truitt Savell  <tsavell@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

    r244248 r244409  
    466466    }
    467467
    468     if (isCrossOriginPrefetch(originalRequest())) {
    469         send(Messages::WebResourceLoader::DidReceiveResponse { ResourceResponse { }, false });
     468    if (isCrossOriginPrefetch(originalRequest()))
    470469        return completionHandler(PolicyAction::Use);
    471     }
     470
    472471    // We wait to receive message NetworkResourceLoader::ContinueDidReceiveResponse before continuing a load for
    473472    // a main resource because the embedding client must decide whether to allow the load.
Note: See TracChangeset for help on using the changeset viewer.