Title: [244409] trunk/Source/WebKit
- Revision
- 244409
- Author
- [email protected]
- Date
- 2019-04-17 16:29:45 -0700 (Wed, 17 Apr 2019)
Log Message
Link prefetch not useful for top-level navigation
https://bugs.webkit.org/show_bug.cgi?id=195623
Patch by Rob Buis <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (244408 => 244409)
--- trunk/Source/WebKit/ChangeLog 2019-04-17 23:15:01 UTC (rev 244408)
+++ trunk/Source/WebKit/ChangeLog 2019-04-17 23:29:45 UTC (rev 244409)
@@ -1,3 +1,16 @@
+2019-04-17 Rob Buis <[email protected]>
+
+ Link prefetch not useful for top-level navigation
+ https://bugs.webkit.org/show_bug.cgi?id=195623
+
+ 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):
+
2019-04-17 Truitt Savell <[email protected]>
Unreviewed, rolling out r244400.
Modified: trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp (244408 => 244409)
--- trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp 2019-04-17 23:15:01 UTC (rev 244408)
+++ trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp 2019-04-17 23:29:45 UTC (rev 244409)
@@ -465,10 +465,9 @@
return completionHandler(PolicyAction::Use);
}
- if (isCrossOriginPrefetch(originalRequest())) {
- send(Messages::WebResourceLoader::DidReceiveResponse { ResourceResponse { }, false });
+ if (isCrossOriginPrefetch(originalRequest()))
return completionHandler(PolicyAction::Use);
- }
+
// We wait to receive message NetworkResourceLoader::ContinueDidReceiveResponse before continuing a load for
// a main resource because the embedding client must decide whether to allow the load.
bool willWaitForContinueDidReceiveResponse = isMainResource();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes