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

Issue 1672373002: Don't rely on the pending NavigationEntry for location.replace. (Closed)

Created:
4 years, 10 months ago by Charlie Reis
Modified:
4 years, 10 months ago
Reviewers:
Avi (use Gerrit), nasko
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, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't rely on the pending NavigationEntry for location.replace. This CL adds a should_replace_current_entry param to commit IPCs, and it ensures the WebDataSource is accurate on browser-initiated navigations. To keep the CL manageable, it does not yet change same-process location.replace navigations from EXISTING_PAGE to NEW_PAGE, though we want to do that as well. BUG=317872 TEST=No behavior change. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/73c9e79d72b0781c3f22b5c61e95ba5170f4f4a1 Cr-Commit-Position: refs/heads/master@{#374223}

Patch Set 1 #

Patch Set 2 : Fix tests and clean up #

Patch Set 3 : Update LayoutTest expectations #

Patch Set 4 : Style changes #

Patch Set 5 : Fix merge conflict #

Total comments: 4

Patch Set 6 : Fix bug numbers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -35 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 3 chunks +21 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 chunks +23 lines, -19 lines 0 comments Download
M content/test/test_render_frame_host.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 5 chunks +19 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (13 generated)
Charlie Reis
Avi, can you take a look? I'm splitting this out from the larger effort to ...
4 years, 10 months ago (2016-02-08 07:02:38 UTC) #4
Avi (use Gerrit)
FYI I fixed your bug number; it was wrong. Looking...
4 years, 10 months ago (2016-02-08 15:41:32 UTC) #6
Avi (use Gerrit)
LGTM The code looks correct, but like all navigation CLs it's pretty high-risk. I'll cross ...
4 years, 10 months ago (2016-02-08 16:02:29 UTC) #7
Charlie Reis
On 2016/02/08 16:02:29, Avi wrote: > LGTM > > The code looks correct, but like ...
4 years, 10 months ago (2016-02-08 17:13:21 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672373002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672373002/100001
4 years, 10 months ago (2016-02-08 17:14:22 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/142381)
4 years, 10 months ago (2016-02-08 17:55:58 UTC) #13
nasko
IPC LGTM
4 years, 10 months ago (2016-02-08 18:41:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672373002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672373002/100001
4 years, 10 months ago (2016-02-08 18:47:37 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/19871)
4 years, 10 months ago (2016-02-08 20:19:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672373002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672373002/100001
4 years, 10 months ago (2016-02-08 20:26:09 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-09 00:08:33 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/73c9e79d72b0781c3f22b5c61e95ba5170f4f4a1 Cr-Commit-Position: refs/heads/master@{#374223}
4 years, 10 months ago (2016-02-09 00:09:51 UTC) #25
Charlie Reis
4 years, 10 months ago (2016-02-09 19:11:51 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1679383002/ by creis@chromium.org.

The reason for reverting is: Causing crashes in
NavigationControllerImpl::RendererDidNavigate (https://crbug.com/585499) and
RenderFrameImpl::willSendRequest (https://crbug.com/585520).  Will investigate
before re-landing..

Powered by Google App Engine
This is Rietveld 408576698