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

Issue 1881023003: Do not create pending NavigationEntry when a transient one is present. (Closed)

Created:
4 years, 8 months ago by nasko
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not create pending NavigationEntry when a transient one is present. When an interestitial page is displayed, network requests from the existing RenderFrameHost are blocked. However, this still allows the renderer to send a DidStartProvisionalLoad IPC. This CL adds check whether when processing the IPC a transient entry is present and skips creating a pending entry. Otherwise the pending entry creation deletes the transient entry and leades to URL spoof. BUG=600046 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b2f82b84617fd2c1645a4a185f628f61f7741627 Cr-Commit-Position: refs/heads/master@{#387545}

Patch Set 1 #

Patch Set 2 : Remove unneeded includes. #

Patch Set 3 : Rebase on ToT. #

Total comments: 18

Patch Set 4 : Fixes based on review. #

Total comments: 4

Patch Set 5 : Fixes for review by Lei. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -1 line) Patch
M chrome/browser/OWNERS View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
A chrome/browser/chrome_navigation_browsertest.cc View 1 2 3 4 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/window_open_and_navigate.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
nasko
Hey Charlie, Can you review this CL for me? It fixes the URL spoof bug ...
4 years, 8 months ago (2016-04-12 21:52:44 UTC) #3
Charlie Reis
Great! I'm glad you were able to get a test to work. Mostly nits, and ...
4 years, 8 months ago (2016-04-13 06:03:37 UTC) #4
Charlie Reis
https://codereview.chromium.org/1881023003/diff/40001/chrome/browser/OWNERS File chrome/browser/OWNERS (right): https://codereview.chromium.org/1881023003/diff/40001/chrome/browser/OWNERS#newcode24 chrome/browser/OWNERS:24: per-file chrome_navigation_browsertest.cc=nasko@chromium.org Can you add a similar set of ...
4 years, 8 months ago (2016-04-13 17:27:22 UTC) #5
nasko
This PS addresses all the comments but one. I will do more follow up to ...
4 years, 8 months ago (2016-04-13 18:45:30 UTC) #6
Charlie Reis
Thanks, LGTM! https://codereview.chromium.org/1881023003/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1881023003/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode1031 content/browser/frame_host/navigator_impl.cc:1031: bool has_transient_entry = !!controller_->GetTransientEntry(); On 2016/04/13 06:03:37, ...
4 years, 8 months ago (2016-04-14 23:02:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881023003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881023003/60001
4 years, 8 months ago (2016-04-15 02:17:32 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/168984)
4 years, 8 months ago (2016-04-15 02:27:23 UTC) #11
nasko
Hey Lei, Can you do an OWNERS review of chrome/ for me? Thanks in advance! ...
4 years, 8 months ago (2016-04-15 03:10:22 UTC) #13
Lei Zhang
lgtm https://codereview.chromium.org/1881023003/diff/60001/chrome/browser/OWNERS File chrome/browser/OWNERS (right): https://codereview.chromium.org/1881023003/diff/60001/chrome/browser/OWNERS#newcode23 chrome/browser/OWNERS:23: per-file chrome_navigation_browsertest.cc=alexmos@chromium.org sort - elf before navigation https://codereview.chromium.org/1881023003/diff/60001/chrome/browser/chrome_navigation_browsertest.cc ...
4 years, 8 months ago (2016-04-15 04:50:38 UTC) #14
nasko
https://codereview.chromium.org/1881023003/diff/60001/chrome/browser/OWNERS File chrome/browser/OWNERS (right): https://codereview.chromium.org/1881023003/diff/60001/chrome/browser/OWNERS#newcode23 chrome/browser/OWNERS:23: per-file chrome_navigation_browsertest.cc=alexmos@chromium.org On 2016/04/15 04:50:38, Lei Zhang wrote: > ...
4 years, 8 months ago (2016-04-15 05:14:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881023003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881023003/80001
4 years, 8 months ago (2016-04-15 05:15:02 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-15 07:09:16 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 07:10:48 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b2f82b84617fd2c1645a4a185f628f61f7741627
Cr-Commit-Position: refs/heads/master@{#387545}

Powered by Google App Engine
This is Rietveld 408576698