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

Issue 2316133003: Don't mark navigations as in-page when DSNs are mismatched. (Closed)

Created:
4 years, 3 months ago by nasko
Modified:
4 years, 3 months ago
Reviewers:
Charlie Reis
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

Don't mark navigations as in-page when DSNs are mismatched. When renderer is asked to do a session history navigation that is in-page, it should verify whether it has already committed a different document by verifying the document sequence number (DSN) matches between the one it has and the one sent by the browser process. When there is a mismatch, the navigation should not be treated as in-page, since that can lead to mismatch between the origin and URL of a document. This is a slightly modified version of https://codereview.chromium.org/2253233002/, which was reverted and includes a test case to reproduce the race condition causing the mismatch. BUG=628677, 630103 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/e6c6898cbfcf2be644cf5c8f283f74f75c60161f Cr-Commit-Position: refs/heads/master@{#417012}

Patch Set 1 #

Patch Set 2 : Disable the new test in PlzNavigate, until I can investigate the cause of the failure. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -8 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 2 chunks +85 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +16 lines, -8 lines 1 comment 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: 14 (8 generated)
nasko
Hey Charlie, I was able to write a test for the race condition we discussed ...
4 years, 3 months ago (2016-09-07 17:23:18 UTC) #5
Charlie Reis
Glad you got a test working! LGTM. https://codereview.chromium.org/2316133003/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/2316133003/diff/20001/content/renderer/render_frame_impl.cc#oldcode5546 content/renderer/render_frame_impl.cc:5546: // NOTREACHED ...
4 years, 3 months ago (2016-09-07 17:42:09 UTC) #6
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/2316133003/20001
4 years, 3 months ago (2016-09-07 18:47:57 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-07 18:53:53 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e6c6898cbfcf2be644cf5c8f283f74f75c60161f Cr-Commit-Position: refs/heads/master@{#417012}
4 years, 3 months ago (2016-09-07 18:55:25 UTC) #13
gogerald1
4 years, 3 months ago (2016-09-08 15:32:54 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2323803002/ by gogerald@chromium.org.

The reason for reverting is: Introduced flaky test,
https://bugs.chromium.org/p/chromium/issues/detail?id=645022.

Powered by Google App Engine
This is Rietveld 408576698