| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 325d1d7b8f47dcb9fa886dd996f625d17e6e8760..6c2fde7af203ded1056681b25c6c938ec4e8f7bb 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -4667,7 +4667,11 @@ void RenderFrameImpl::didStartLoading(bool to_different_document) {
|
| TRACE_EVENT1("navigation", "RenderFrameImpl::didStartLoading",
|
| "id", routing_id_);
|
| render_view_->FrameDidStartLoading(frame_);
|
| - Send(new FrameHostMsg_DidStartLoading(routing_id_, to_different_document));
|
| +
|
| + // PlzNavigate: the browser is responsible for knowing the start of all
|
| + // non-synchronous navigations.
|
| + if (!IsBrowserSideNavigationEnabled() || !to_different_document)
|
| + Send(new FrameHostMsg_DidStartLoading(routing_id_, to_different_document));
|
| }
|
|
|
| void RenderFrameImpl::didStopLoading() {
|
| @@ -4963,7 +4967,7 @@ WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation(
|
| ShouldMakeNetworkRequestForURL(url)) {
|
| BeginNavigation(&info.urlRequest, info.replacesCurrentHistoryItem,
|
| info.isClientRedirect);
|
| - return blink::WebNavigationPolicyIgnore;
|
| + return blink::WebNavigationPolicyHandledByClient;
|
| }
|
|
|
| return info.defaultPolicy;
|
|
|