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

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed)

Created:
5 years, 9 months ago by clamy
Modified:
5 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@support-data-urls
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Show error pages when the navigation failed before commit This CL enables showing error pages when browser-side navigation is enabled. It introduces a new IPC FrameMsg_FailedNavigation used by the browser to ask a renderer to display an appropriate error page for a navigation that just failed. BUG=459033 Committed: https://crrev.com/62b271de77990e9cb5c530c8a27ff41f21f9b1b3 Cr-Commit-Position: refs/heads/master@{#325425}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase on top of NavigationParams refactoring #

Patch Set 4 : Now sending DidStartProvisionalLoad #

Patch Set 5 : #

Patch Set 6 : Fixed compilation error #

Total comments: 7

Patch Set 7 : Rebase #

Patch Set 8 : Changed the way replace is computed for failed loads #

Total comments: 2

Patch Set 9 : Fixed replace computation #

Total comments: 8

Patch Set 10 : Rebase #

Patch Set 11 : Added a browsertest #

Total comments: 8

Patch Set 12 : Rebase #

Patch Set 13 : Updated test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -94 lines) Patch
M content/browser/browser_side_navigation_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +26 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +9 lines, -37 lines 0 comments Download
M content/child/web_url_request_util.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/child/web_url_request_util.cc View 1 2 3 4 3 chunks +27 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +99 lines, -37 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
clamy
@creis, davidben: PTAL @nasko: FYI This is the patch to show error pages in PlzNavigate ...
5 years, 8 months ago (2015-03-31 15:40:27 UTC) #2
clamy
+carlosk, fdegans: FYI
5 years, 8 months ago (2015-03-31 15:41:21 UTC) #4
Charlie Reis
[+avi] Sorry, I didn't get a chance to review this today. However, Avi has been ...
5 years, 8 months ago (2015-03-31 23:16:40 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc#newcode4097 content/renderer/render_frame_impl.cc:4097: ui::PAGE_TRANSITION_AUTO_SUBFRAME); This definition of replace is wrong when we ...
5 years, 8 months ago (2015-04-01 16:45:42 UTC) #8
Avi (use Gerrit)
As a side note, you don't need to commit the browsertest from https://codereview.chromium.org/1048963002/ (I'm still ...
5 years, 8 months ago (2015-04-01 18:08:09 UTC) #9
clamy
Thanks! One question on your comment. https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc#newcode4097 content/renderer/render_frame_impl.cc:4097: ui::PAGE_TRANSITION_AUTO_SUBFRAME); On 2015/04/01 ...
5 years, 8 months ago (2015-04-02 08:21:10 UTC) #10
Avi (use Gerrit)
https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc#newcode4097 content/renderer/render_frame_impl.cc:4097: ui::PAGE_TRANSITION_AUTO_SUBFRAME); On 2015/04/02 08:21:10, clamy wrote: > Then can ...
5 years, 8 months ago (2015-04-02 15:05:23 UTC) #11
clamy
Thanks! https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc#newcode4097 content/renderer/render_frame_impl.cc:4097: ui::PAGE_TRANSITION_AUTO_SUBFRAME); On 2015/04/02 15:05:23, Avi wrote: > On ...
5 years, 8 months ago (2015-04-08 12:53:49 UTC) #12
Avi (use Gerrit)
https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/958083002/diff/120001/content/renderer/render_frame_impl.cc#newcode4097 content/renderer/render_frame_impl.cc:4097: ui::PAGE_TRANSITION_AUTO_SUBFRAME); On 2015/04/08 12:53:49, clamy wrote: > Unfortunately, the ...
5 years, 8 months ago (2015-04-08 14:12:13 UTC) #13
clamy
Thanks! I tested manually that spurious entries are not created when hitting enter in the ...
5 years, 8 months ago (2015-04-08 15:02:22 UTC) #14
Avi (use Gerrit)
LGTM; this looks reasonable. It is all going to have to change to fix http://crbug.com/474261 ...
5 years, 8 months ago (2015-04-08 15:22:11 UTC) #15
Avi (use Gerrit)
On 2015/04/08 15:22:11, Avi wrote: > LGTM; this looks reasonable. > > It is all ...
5 years, 8 months ago (2015-04-08 15:22:30 UTC) #16
clamy
Thanks! @creis: PTAL
5 years, 8 months ago (2015-04-08 15:23:36 UTC) #17
Charlie Reis
Thanks, seems reasonable to me as well. (I'm not very familiar with the existing error ...
5 years, 8 months ago (2015-04-09 00:07:30 UTC) #18
clamy
Thanks! I added a simple browser test to exercise the navigation failure. https://codereview.chromium.org/958083002/diff/180001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc ...
5 years, 8 months ago (2015-04-10 14:04:50 UTC) #20
Charlie Reis
https://codereview.chromium.org/958083002/diff/240001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://codereview.chromium.org/958083002/diff/240001/content/browser/browser_side_navigation_browsertest.cc#newcode176 content/browser/browser_side_navigation_browsertest.cc:176: GURL url("http://127.0.0.1:4"); On 2015/04/10 14:04:49, clamy wrote: > The ...
5 years, 8 months ago (2015-04-10 22:54:44 UTC) #21
clamy
Thanks! The test has been updated. @nasko: PTAL a look at the changes in frame_messages ...
5 years, 8 months ago (2015-04-14 11:56:25 UTC) #22
nasko
LGTM
5 years, 8 months ago (2015-04-15 21:34:32 UTC) #23
Charlie Reis
Thanks-- still LGTM.
5 years, 8 months ago (2015-04-15 21:37:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958083002/280001
5 years, 8 months ago (2015-04-16 09:44:43 UTC) #27
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years, 8 months ago (2015-04-16 11:55:04 UTC) #28
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 11:56:01 UTC) #29
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/62b271de77990e9cb5c530c8a27ff41f21f9b1b3
Cr-Commit-Position: refs/heads/master@{#325425}

Powered by Google App Engine
This is Rietveld 408576698