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

Issue 2687593002: PlzNavigate: Invoke didFailProvisionalLoad() in the renderer when a navigation request is cancelled… (Closed)

Created:
3 years, 10 months ago by ananta
Modified:
3 years, 10 months ago
Reviewers:
clamy, Nate Chapin, jam, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Invoke didFailProvisionalLoad() in the renderer when a navigation request is cancelled or fails Navigation requests can be cancelled or they could fail. In the latter case we do send an IPC FrameMsg_FailedNavigation to the renderer where we display error pages etc. However we don't invoke didFailProvisionalLoad() which causes a number of blink layout tests to fail. In any case we send out a didStartProvisionalLoad() notification in blink when plznavigate handles navigation requests. We can safely call didFailProvisionalLoad() notification when the navigation fails. For cancelled navigations like external URLs etc we invoke the didFailProvisionalLoad() handler for client side navigations in FrameLoader::stopAllLoaders() BUG=640631 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2687593002 Cr-Commit-Position: refs/heads/master@{#449412} Committed: https://chromium.googlesource.com/chromium/src/+/a85730c84d15b89b04bf58ed6efda2050c9de619

Patch Set 1 #

Patch Set 2 : We may not have a provisional data source at all times #

Total comments: 2

Patch Set 3 : Send didFailProvisionalLoad() in the FrameMsg_OnStop handler in the renderer #

Patch Set 4 : Revert changes #

Patch Set 5 : Revert changes #

Total comments: 4

Patch Set 6 : Address review comments #

Total comments: 2

Patch Set 7 : Remove null client check #

Patch Set 8 : Remove null client check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -18 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (28 generated)
ananta
3 years, 10 months ago (2017-02-08 01:08:25 UTC) #3
jam
I defer to Camille or Nasko on this.
3 years, 10 months ago (2017-02-08 17:05:29 UTC) #13
clamy
Thanks! One question below. https://codereview.chromium.org/2687593002/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2687593002/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode1033 content/browser/frame_host/navigator_impl.cc:1033: render_frame_host->AbortNavigationRequest( How many tests fail ...
3 years, 10 months ago (2017-02-08 17:13:34 UTC) #14
ananta
https://codereview.chromium.org/2687593002/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2687593002/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode1033 content/browser/frame_host/navigator_impl.cc:1033: render_frame_host->AbortNavigationRequest( On 2017/02/08 17:13:34, clamy (slow - catching up) ...
3 years, 10 months ago (2017-02-08 23:02:19 UTC) #16
ananta
+nasko for FrameLoader.cpp
3 years, 10 months ago (2017-02-08 23:03:12 UTC) #17
nasko
This seems reasonable to me, but I'd defer to clamy@ for final approval. You also ...
3 years, 10 months ago (2017-02-08 23:52:22 UTC) #21
ananta
https://codereview.chromium.org/2687593002/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2687593002/diff/80001/content/renderer/render_frame_impl.cc#newcode3508 content/renderer/render_frame_impl.cc:3508: // On 2017/02/08 23:52:22, nasko (very slow) wrote: > ...
3 years, 10 months ago (2017-02-08 23:59:21 UTC) #22
ananta
+japhet for FrameLoader.cpp
3 years, 10 months ago (2017-02-08 23:59:45 UTC) #23
Nate Chapin
I'm not thrilled with sending a didFailProvisionalLoad() when there isn't a provisionalDataSource(), but it's consistent ...
3 years, 10 months ago (2017-02-09 00:10:07 UTC) #26
ananta
https://codereview.chromium.org/2687593002/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2687593002/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1234 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1234: if (m_isNavigationHandledByClient && client()) { On 2017/02/09 00:10:07, Nate ...
3 years, 10 months ago (2017-02-09 00:22:46 UTC) #27
clamy
Thanks! Lgtm.
3 years, 10 months ago (2017-02-09 10:15:33 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2687593002/120001
3 years, 10 months ago (2017-02-09 19:07:35 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/360796)
3 years, 10 months ago (2017-02-09 19:17:25 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2687593002/140001
3 years, 10 months ago (2017-02-09 19:43:05 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 21:23:51 UTC) #43
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/a85730c84d15b89b04bf58ed6efd...

Powered by Google App Engine
This is Rietveld 408576698