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

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: Fix redness 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
« no previous file with comments | « no previous file | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ca0aa871cf8c7080239684ef9614ce313809b63e 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 (delegate_->IsNavigationInitiatedByRenderer(request))
+ 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 | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698