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

Issue 2023013002: Prevent renderer kills for in-page navigations on subframes. (Closed)

Created:
4 years, 6 months ago by Charlie Reis
Modified:
4 years, 6 months ago
Reviewers:
Avi (use Gerrit)
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

Prevent renderer kills for in-page navigations on subframes. This switches HistoryController and HistoryEntry to look at the last committed WebHistoryItem for a frame rather than assuming that the whole HistoryEntry accurately reflects the state of the page. The previous logic led to NC_IN_PAGE_NAVIGATION renderer kills when going back cross-site in ways that looked in-page to the HistoryEntry. This CL does not yet fix the kills that happen in FrameNavigationEntry modes, which are covered by the BackTwiceToIframeWithContent test. Those will be fixed in a follow-up CL. BUG=612713 TEST=Fewer NC_IN_PAGE_NAVIGATION kills. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/225a74338e488576c405e18610298c39244b85f5 Cr-Commit-Position: refs/heads/master@{#397832}

Patch Set 1 #

Patch Set 2 : Update tests and fix, clean up. #

Total comments: 21

Patch Set 3 : Update comments #

Patch Set 4 : Rebase filter file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -47 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 5 chunks +243 lines, -38 lines 0 comments Download
M content/renderer/history_controller.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M content/renderer/history_entry.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M testing/buildbot/filters/isolate-extensions.content_browsertests.filter View 1 1 chunk +4 lines, -0 lines 0 comments Download
M testing/buildbot/filters/site-per-process.content_browsertests.filter View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
Charlie Reis
Avi, can you take a look? I posted an explanation to https://crbug.com/612713 (comments 12-14), and ...
4 years, 6 months ago (2016-06-03 19:20:36 UTC) #3
Avi (use Gerrit)
I agree with these fixes, but have some questions about comments. The old code seems ...
4 years, 6 months ago (2016-06-03 20:26:57 UTC) #5
Charlie Reis
Thanks for requesting comments-- that's definitely worthwhile. (I was in a bit of a rush ...
4 years, 6 months ago (2016-06-03 20:53:28 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023013002/40001
4 years, 6 months ago (2016-06-03 20:54:05 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/16040) ios-device-gn on ...
4 years, 6 months ago (2016-06-03 20:56:56 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023013002/60001
4 years, 6 months ago (2016-06-03 21:03:03 UTC) #12
Avi (use Gerrit)
lgtm 👍
4 years, 6 months ago (2016-06-03 21:04:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023013002/60001
4 years, 6 months ago (2016-06-03 21:06:04 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-03 22:56:40 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 22:57:45 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/225a74338e488576c405e18610298c39244b85f5
Cr-Commit-Position: refs/heads/master@{#397832}

Powered by Google App Engine
This is Rietveld 408576698