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

Issue 2208933002: Don't load subframe history items if a client redirect occurs during load. (Closed)

Created:
4 years, 4 months ago by Charlie Reis
Modified:
4 years, 4 months ago
Reviewers:
Nate Chapin, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, tyoshino+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, loading-reviews_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin, 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 load subframe history items if a client redirect occurs during load. Javascript navigations during load should be able to interrupt loading the history item. This change updates the UseSubframeNavigationEntries path to handle this similarly to the default navigation path. (In both cases, there's some raciness involved, but it tends to allow the JS navigation to win.) BUG=585194 TEST=Visit http://csreis.github.io/tests/dynamic-iframe.html, navigate away and come back. Should get a different number. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/935b99db3e8295407308c052b7835eb18e2a43d4 Cr-Commit-Position: refs/heads/master@{#409811}

Patch Set 1 #

Patch Set 2 : Clean up. #

Patch Set 3 : Rebase, re-enable tests #

Patch Set 4 : Limit to subframe case. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -17 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 2 chunks +26 lines, -6 lines 6 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/isolate-extensions View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
Charlie Reis
Nate, what do you think of the fix in render_frame_impl.cc? I think it should do ...
4 years, 4 months ago (2016-08-04 14:48:46 UTC) #12
nasko
content/ LGTM https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc#newcode4962 content/renderer/render_frame_impl.cc:4962: // JavaScript on the page is trying ...
4 years, 4 months ago (2016-08-04 16:00:38 UTC) #13
Nate Chapin
Yeah, that looks reasonable. LGTM https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc#newcode4963 content/renderer/render_frame_impl.cc:4963: if (!info.isClientRedirect) { On ...
4 years, 4 months ago (2016-08-04 16:40:42 UTC) #14
Charlie Reis
Thanks! https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2208933002/diff/60001/content/renderer/render_frame_impl.cc#newcode4962 content/renderer/render_frame_impl.cc:4962: // JavaScript on the page is trying to ...
4 years, 4 months ago (2016-08-04 16:46:27 UTC) #15
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/2208933002/60001
4 years, 4 months ago (2016-08-04 16:46:51 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-04 16:50:48 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 16:54:20 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/935b99db3e8295407308c052b7835eb18e2a43d4
Cr-Commit-Position: refs/heads/master@{#409811}

Powered by Google App Engine
This is Rietveld 408576698