| 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 ca0aa871cf8c7080239684ef9614ce313809b63e..692639b2f95c2851aaf61400c33a3372b27dd51a 100644
|
| --- a/components/test_runner/web_frame_test_client.cc
|
| +++ b/components/test_runner/web_frame_test_client.cc
|
| @@ -29,6 +29,7 @@
|
| #include "third_party/WebKit/public/platform/WebURLRequest.h"
|
| #include "third_party/WebKit/public/platform/WebURLResponse.h"
|
| #include "third_party/WebKit/public/web/WebConsoleMessage.h"
|
| +#include "third_party/WebKit/public/web/WebDataSource.h"
|
| #include "third_party/WebKit/public/web/WebElement.h"
|
| #include "third_party/WebKit/public/web/WebFrame.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| @@ -412,7 +413,16 @@ void WebFrameTestClient::loadErrorPage(int reason) {
|
| }
|
| }
|
|
|
| -void WebFrameTestClient::didStartProvisionalLoad(blink::WebLocalFrame* frame) {
|
| +void WebFrameTestClient::didStartProvisionalLoad(
|
| + blink::WebLocalFrame* frame,
|
| + const blink::WebURLRequest& request) {
|
| + // PlzNavigate
|
| + // A provisional load notification is received when a frame navigation is
|
| + // sent to the browser. We don't want to log it again during commit.
|
| + // Please see the RenderFrameImpl::BeginNavigation() function.
|
| + if (delegate_->IsNavigationInitiatedByRenderer(request))
|
| + return;
|
| +
|
| test_runner()->tryToSetTopLoadingFrame(frame);
|
|
|
| if (test_runner()->shouldDumpFrameLoadCallbacks()) {
|
|
|