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

Issue 2224213005: Ensure FrameNavigationEntry is fully updated. (Closed)

Created:
4 years, 4 months ago by nasko
Modified:
4 years, 4 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_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

Ensure FrameNavigationEntry is fully updated. Currently RendererDidNavigateToExistingPage and RendererDidNavigateToSamePage only partially update the FrameNavigationEntry for the committing navigation. This leads to inconsistency between sequence numbers and PageState, which can cause origin/URL mismatches. This CL updates both these methods to call AddOrUpdateFrameEntry to ensure that all members are properly updated. BUG=630103, 628677 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/af18219268a332a92b3c8bbaa306aade92142c55 Cr-Commit-Position: refs/heads/master@{#411224}

Patch Set 1 #

Patch Set 2 : Clear children FNEs of main frame on redirects. #

Total comments: 14

Patch Set 3 : Address review comments. #

Patch Set 4 : Remove process liveness check. #

Patch Set 5 : Use cross-origin instead of cross-site. #

Total comments: 2

Patch Set 6 : Disable new test in PlzNavigate mode. #

Patch Set 7 : Rebase on ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -52 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 chunks +21 lines, -31 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 3 chunks +25 lines, -15 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 40 (23 generated)
nasko
Hey Charlie, Can you review this CL for me? It fixes the known issue causing ...
4 years, 4 months ago (2016-08-10 15:04:39 UTC) #10
Charlie Reis
Fantastic. LGTM with nits, once we address the one concern about flakiness in the test ...
4 years, 4 months ago (2016-08-10 17:03:09 UTC) #13
nasko
https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl.cc#newcode1223 content/browser/frame_host/navigation_controller_impl.cc:1223: static_cast<SiteInstanceImpl*>(rfh->GetSiteInstance())); On 2016/08/10 17:03:08, Charlie Reis wrote: > This ...
4 years, 4 months ago (2016-08-10 18:08:51 UTC) #14
Charlie Reis
https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode5688 content/browser/frame_host/navigation_controller_impl_browsertest.cc:5688: EXPECT_TRUE(!process_observer.is_gone()) << "Exit status: " On 2016/08/10 18:08:51, nasko ...
4 years, 4 months ago (2016-08-10 18:36:16 UTC) #15
nasko
Still looks good? https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2224213005/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode5688 content/browser/frame_host/navigation_controller_impl_browsertest.cc:5688: EXPECT_TRUE(!process_observer.is_gone()) << "Exit status: " On ...
4 years, 4 months ago (2016-08-10 19:42:52 UTC) #16
Charlie Reis
Yep, LGTM!
4 years, 4 months ago (2016-08-10 19:49:03 UTC) #17
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/2224213005/60001
4 years, 4 months ago (2016-08-10 19:50:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/2998)
4 years, 4 months ago (2016-08-10 20:52:18 UTC) #21
nasko
https://codereview.chromium.org/2224213005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2224213005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode5642 content/browser/frame_host/navigation_controller_impl_browsertest.cc:5642: embedded_test_server()->GetURL("sub.a.com", "/simple_page.html")); Went back to using cross-origin instead of ...
4 years, 4 months ago (2016-08-10 21:26:56 UTC) #22
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/2224213005/80001
4 years, 4 months ago (2016-08-10 21:27:48 UTC) #25
Charlie Reis
Still LGTM. https://codereview.chromium.org/2224213005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2224213005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode5642 content/browser/frame_host/navigation_controller_impl_browsertest.cc:5642: embedded_test_server()->GetURL("sub.a.com", "/simple_page.html")); On 2016/08/10 21:26:56, nasko (slow) ...
4 years, 4 months ago (2016-08-10 21:28:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/277895)
4 years, 4 months ago (2016-08-10 22:38:22 UTC) #28
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/2224213005/100001
4 years, 4 months ago (2016-08-10 23:58:38 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/110490) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-11 00:03:39 UTC) #33
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/2224213005/120001
4 years, 4 months ago (2016-08-11 00:25:36 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-11 02:12:18 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 02:13:37 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/af18219268a332a92b3c8bbaa306aade92142c55
Cr-Commit-Position: refs/heads/master@{#411224}

Powered by Google App Engine
This is Rietveld 408576698