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

Issue 2437173002: Fix going back 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, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix going back to a script-injected about:blank frame. This is a minimal change that avoids having the renderer make IPCs to the browser to get history items that would just turn out to be about:blank. The renderer can commit these synchronously. This approach has one known issue: going back to a page whose subframe had a real initial URL but was navigated to about:blank will break (and load the initial URL rather than about:blank). BUG=657896 TEST=See bug for repro steps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation [Closed in favor of a more correct fix: https://codereview.chromium.org/2438743005/]

Patch Set 1 #

Patch Set 2 : Updated fix, revised tests #

Patch Set 3 : Add tests for about:blank and srcdoc #

Patch Set 4 : Disable srcdoc test in PlzNavigate #

Total comments: 10

Patch Set 5 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -17 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 3 chunks +191 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 1 chunk +22 lines, -1 line 0 comments Download
A content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A content/test/data/navigation_controller/inject_subframe_into_blank_iframe.html View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (22 generated)
Charlie Reis
Alex, what do you think about this as a followup to https://codereview.chromium.org/2380943002? It would break ...
4 years, 2 months ago (2016-10-20 19:11:26 UTC) #5
Charlie Reis
Alex, can you take a look at PS2? It still breaks the case where we ...
4 years, 2 months ago (2016-10-20 23:18:02 UTC) #10
Charlie Reis
Ok, new tests added, and this is ready for review. They should show the bug ...
4 years, 2 months ago (2016-10-21 01:18:51 UTC) #13
Charlie Reis
https://codereview.chromium.org/2437173002/diff/60001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2437173002/diff/60001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode3388 content/browser/frame_host/navigation_controller_impl_browsertest.cc:3388: ASSERT_EQ(1U, root->child_at(0)->child_count()); Not sure why this isn't working in ...
4 years, 2 months ago (2016-10-21 04:39:25 UTC) #17
alexmos
LGTM with nits. Thanks for the thorough tests! I'll take a look at the second ...
4 years, 2 months ago (2016-10-21 06:34:16 UTC) #20
Charlie Reis
Thanks! Nits fixed (and I'll apply them to the other CL as well). I won't ...
4 years, 2 months ago (2016-10-21 07:34:30 UTC) #25
Charlie Reis
4 years, 2 months ago (2016-10-21 20:48:50 UTC) #29
Message was sent while issue was closed.
Closed this in favor of landing https://codereview.chromium.org/2438743005/
instead, since that one is more correct.

Powered by Google App Engine
This is Rietveld 408576698