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

Issue 2433743004: PlzNavigate: Transmit referrer into FrameNavigationEntry. (Closed)

Created:
4 years, 2 months ago by arthursonzogni
Modified:
4 years, 1 month ago
Reviewers:
clamy, Charlie Reis
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Transmit referrer into FrameNavigationEntry. Referrer information was lost for a subframe navigation. Consequently, it was not stored in a FrameNavigationEntry and not properly restored when the user come back to the main page using the back button. This CL **partially** fixes the tests: * http/tests/navigation/post-frame-goback1.html * virtual/stable/http/tests/navigation/post-frames-goback1.html with --enable-browser-side-navigation flag. BUG=648588 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/4cb7d05bc2e30d147c38ba73e9697f4559e55c0f Cr-Commit-Position: refs/heads/master@{#427314}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Add tests. #

Total comments: 3

Patch Set 3 : Merge tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -6 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 chunks +11 lines, -6 lines 0 comments Download
A content/test/data/navigation_controller/page_with_iframe_simple.html View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (30 generated)
arthursonzogni
Hi Camille, This is a small CL. Referrer was not set for subframe navigation. Could ...
4 years, 2 months ago (2016-10-19 14:05:25 UTC) #11
clamy
https://codereview.chromium.org/2433743004/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2433743004/diff/20001/content/renderer/render_frame_impl.cc#newcode4813 content/renderer/render_frame_impl.cc:4813: if (ds->isClientRedirect()) { This is happening in the middle ...
4 years, 2 months ago (2016-10-19 14:34:51 UTC) #13
arthursonzogni
On 2016/10/19 14:34:51, clamy wrote: > https://codereview.chromium.org/2433743004/diff/20001/content/renderer/render_frame_impl.cc > File content/renderer/render_frame_impl.cc (right): > > https://codereview.chromium.org/2433743004/diff/20001/content/renderer/render_frame_impl.cc#newcode4813 > ...
4 years, 2 months ago (2016-10-20 12:48:39 UTC) #15
clamy
Ok I see the issue now. +creis for the review since this concerns history. The ...
4 years, 2 months ago (2016-10-20 12:53:08 UTC) #17
Charlie Reis
Looks right-- can you add a test showing the bug in the non-PlzNavigate case? https://codereview.chromium.org/2433743004/diff/20001/content/renderer/render_frame_impl.cc ...
4 years, 2 months ago (2016-10-21 20:15:58 UTC) #19
arthursonzogni
Hi Charlie, Thanks! I added tests. I confirm that the bug was present, even in ...
4 years, 1 month ago (2016-10-24 15:04:34 UTC) #29
Charlie Reis
Thanks for the test! LGTM with nits. https://codereview.chromium.org/2433743004/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2433743004/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode6780 content/browser/frame_host/navigation_controller_impl_browsertest.cc:6780: // Check ...
4 years, 1 month ago (2016-10-24 17:26:44 UTC) #32
arthursonzogni
Thanks for your review! I use a loop instead of concatenating the tests, I assume ...
4 years, 1 month ago (2016-10-25 09:02:40 UTC) #35
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/2433743004/100001
4 years, 1 month ago (2016-10-25 09:03:47 UTC) #38
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 1 month ago (2016-10-25 10:54:41 UTC) #39
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4cb7d05bc2e30d147c38ba73e9697f4559e55c0f Cr-Commit-Position: refs/heads/master@{#427314}
4 years, 1 month ago (2016-10-25 10:58:36 UTC) #41
Charlie Reis
On 2016/10/25 09:02:40, arthursonzogni wrote: > Thanks for your review! > I use a loop ...
4 years, 1 month ago (2016-10-25 16:48:42 UTC) #42
arthursonzogni
4 years, 1 month ago (2016-10-26 08:02:06 UTC) #43
Message was sent while issue was closed.
On 2016/10/25 16:48:42, Charlie Reis wrote:
> On 2016/10/25 09:02:40, arthursonzogni wrote:
> > Thanks for your review!
> > I use a loop instead of concatenating the tests, I assume it's still okay to
> > commit the patch.
> 
> This is ok, but I would have suggested avoiding that.  There wasn't much code
to
> duplicate here, and now the line numbers in a test failure won't easily reveal
> which part was failing.  (In general, copy/paste in tests is less of a problem
> than in real code, especially for blocks this small.)  Just makes it a bit
> harder to diagnose when it fails.

Good point. I will remember that next time.

Powered by Google App Engine
This is Rietveld 408576698