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

Issue 2438743005: Fix history nav to a script-injected about:blank frame. (Closed)

Created:
4 years, 2 months ago by Charlie Reis
Modified:
4 years, 2 months ago
Reviewers:
alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix history nav to a script-injected about:blank frame. This CL tracks whether the browser process has an about:blank history item for subframes during a history navigation. If the renderer would be staying on about:blank, it can skip asking the browser and commit the initial about:blank page synchronously. BUG=657896, 639842 TEST=See bug for repro steps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation R=alexmos@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/37c954965f2f221aec294a0a28dfbba1c7543f2a

Patch Set 1 #

Patch Set 2 : Disable test in PlzNavigate. #

Patch Set 3 : Remove staying_at_about_blank logic #

Total comments: 2

Patch Set 4 : Fix nits. #

Total comments: 12

Patch Set 5 : Fix nits. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -93 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 3 chunks +256 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 4 3 chunks +12 lines, -9 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 2 chunks +25 lines, -5 lines 2 comments Download
M content/browser/frame_host/navigation_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/navigation_params.h View 3 chunks +9 lines, -8 lines 0 comments Download
M content/common/navigation_params.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 2 chunks +11 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 2 chunks +40 lines, -46 lines 0 comments Download
A content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A content/test/data/navigation_controller/inject_subframe_into_blank_iframe.html View 1 chunk +20 lines, -0 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
Charlie Reis
Here's the somewhat bigger version of https://codereview.chromium.org/2437173002/. For each child frame, it plumbs the |is_about_blank| ...
4 years, 2 months ago (2016-10-21 06:28:59 UTC) #6
alexmos
Looks good, just a couple of nits and sanity checking questions below. I actually don't ...
4 years, 2 months ago (2016-10-21 17:20:50 UTC) #13
Charlie Reis
Thanks! Replies below. On 2016/10/21 17:20:50, alexmos wrote: > Looks good, just a couple of ...
4 years, 2 months ago (2016-10-21 18:11:52 UTC) #16
alexmos
LGTM! https://codereview.chromium.org/2438743005/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2438743005/diff/60001/content/renderer/render_frame_impl.cc#newcode5073 content/renderer/render_frame_impl.cc:5073: !history_item_is_about_blank || url != GURL(url::kAboutBlankURL); On 2016/10/21 18:11:51, ...
4 years, 2 months ago (2016-10-21 18:22:10 UTC) #17
Charlie Reis
Thanks! https://codereview.chromium.org/2438743005/diff/80001/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/2438743005/diff/80001/content/browser/frame_host/navigation_entry_impl.cc#newcode891 content/browser/frame_host/navigation_entry_impl.cc:891: if (UTF16ToUTF8(frame_state.url_string.string()) == url::kAboutBlankURL) On 2016/10/21 18:22:10, alexmos ...
4 years, 2 months ago (2016-10-21 18:31:46 UTC) #18
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/2438743005/80001
4 years, 2 months ago (2016-10-21 18:45:56 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/165670)
4 years, 2 months ago (2016-10-21 20:12:37 UTC) #23
Charlie Reis
I'll land this manually, since the linux_android_rel_ng failure is failing for everyone. This CL can't ...
4 years, 2 months ago (2016-10-21 20:37:41 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/37c954965f2f221aec294a0a28dfbba1c7543f2a Cr-Commit-Position: refs/heads/master@{#426880}
4 years, 2 months ago (2016-10-21 20:43:28 UTC) #26
Charlie Reis
4 years, 2 months ago (2016-10-21 20:46:54 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
37c954965f2f221aec294a0a28dfbba1c7543f2a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698