Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: components/test_runner/web_frame_test_client.cc

Issue 2652123002: PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClie… (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/test_runner/web_frame_test_client.cc
diff --git a/components/test_runner/web_frame_test_client.cc b/components/test_runner/web_frame_test_client.cc
index 47bc588de7de1653c31a03156be608af47f39b32..ebf246b5f2f003a045a0922530095ec5d022728f 100644
--- a/components/test_runner/web_frame_test_client.cc
+++ b/components/test_runner/web_frame_test_client.cc
@@ -538,6 +538,12 @@ void WebFrameTestClient::didDispatchPingLoader(const blink::WebURL& url) {
void WebFrameTestClient::willSendRequest(blink::WebLocalFrame* frame,
blink::WebURLRequest& request) {
+ // PlzNavigate
+ // Navigation requests initiated by the renderer will have been logged when
+ // the navigation was sent to the browser. Please see
+ // the RenderFrameImpl::BeginNavigation() function.
+ if (request.getNavigationInitiatedByRenderer())
+ return;
// Need to use GURL for host() and SchemeIs()
GURL url = request.url();
std::string request_url = url.possibly_invalid_spec();
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | third_party/WebKit/public/platform/WebURLRequest.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698