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

Issue 1002953004: Ensure we properly set PageTransition for iframes. (Closed)

Created:
5 years, 9 months ago by Nate Chapin
Modified:
5 years, 8 months ago
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

Ensure we properly set PageTransition for iframes. We currently don't set subframe navigations as manual when it isn't the first navigation of the iframe. Also, we don't propagate the state correctly in the case of a cross-process transition. BUG=464014 Committed: https://crrev.com/735aa03be45990a5e2feb3c38087e6f76eb920ac Cr-Commit-Position: refs/heads/master@{#326404}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address avi's comments #

Total comments: 10

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Update DidStartProvisionalLoad() commment (no test yet) #

Patch Set 5 : +test #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : Fix remote->remote case #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : Fix style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -18 lines) Patch
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +30 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -12 lines 0 comments Download
M content/test/test_frame_navigation_observer.h View 1 2 3 4 4 chunks +8 lines, -1 line 0 comments Download
M content/test/test_frame_navigation_observer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (2 generated)
Nate Chapin
https://codereview.chromium.org/1002953004/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1002953004/diff/1/content/renderer/render_frame_impl.cc#newcode1063 content/renderer/render_frame_impl.cc:1063: ui::PAGE_TRANSITION_MANUAL_SUBFRAME)) { Propagate the state back into blink. https://codereview.chromium.org/1002953004/diff/1/content/renderer/render_frame_impl.cc#newcode2357 ...
5 years, 9 months ago (2015-03-12 20:31:56 UTC) #1
Avi (use Gerrit)
Some comments here, but I'm not sure about the renderer side. Have Charlie also take ...
5 years, 9 months ago (2015-03-12 20:40:28 UTC) #3
Nate Chapin
https://codereview.chromium.org/1002953004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1002953004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode908 content/browser/frame_host/navigation_controller_impl.cc:908: // for cross-process AUTO_SUBFRAME navigations. On 2015/03/12 20:40:28, Avi ...
5 years, 9 months ago (2015-03-12 20:51:12 UTC) #4
Avi (use Gerrit)
The browser side of things looks good, but I'm not 100% certain, and I don't ...
5 years, 9 months ago (2015-03-12 20:55:07 UTC) #5
Charlie Reis
[+site-isolation-reviews] Thanks for working on this! I'm not sure I understand the fix, so I ...
5 years, 9 months ago (2015-03-12 22:54:18 UTC) #6
Nate Chapin
On 2015/03/12 22:54:18, Charlie Reis wrote: > [+site-isolation-reviews] > > Thanks for working on this! ...
5 years, 9 months ago (2015-03-13 21:48:28 UTC) #7
Nate Chapin
https://codereview.chromium.org/1002953004/diff/20001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1002953004/diff/20001/content/browser/frame_host/navigation_controller_impl.cc#newcode904 content/browser/frame_host/navigation_controller_impl.cc:904: CHECK(!ui::PageTransitionIsMainFrame(params.transition)); On 2015/03/12 22:54:17, Charlie Reis wrote: > DCHECK. ...
5 years, 9 months ago (2015-03-13 21:48:36 UTC) #8
Charlie Reis
Thanks for adding the comments. I had a few questions from before that you might ...
5 years, 9 months ago (2015-03-13 23:22:14 UTC) #9
Nate Chapin
Sorry, I think I responded to your questions over two posts. Copying the non-obviously-placed replies: ...
5 years, 9 months ago (2015-03-13 23:28:38 UTC) #10
Charlie Reis
Ah, my fault for missing your first message! Thanks. Also, I guess I won't be ...
5 years, 9 months ago (2015-03-14 00:03:50 UTC) #11
Nate Chapin
On 2015/03/14 00:03:50, Charlie Reis wrote: > Ah, my fault for missing your first message! ...
5 years, 9 months ago (2015-03-16 17:16:47 UTC) #12
Charlie Reis
On 2015/03/16 17:16:47, Nate Chapin wrote: > https://codereview.chromium.org/1002953004/diff/40001/content/renderer/render_frame_impl.cc#newcode2362 > > content/renderer/render_frame_impl.cc:2362: ui::PAGE_TRANSITION_LINK)) { > > ...
5 years, 9 months ago (2015-03-16 17:38:07 UTC) #13
Charlie Reis
Thanks for the new patch! I think I'm ok with the fact that the test ...
5 years, 8 months ago (2015-04-15 22:46:11 UTC) #14
Nate Chapin
On 2015/04/15 22:46:11, Charlie Reis wrote: > Thanks for the new patch! I think I'm ...
5 years, 8 months ago (2015-04-16 21:18:17 UTC) #15
Charlie Reis
On 2015/04/16 21:18:17, Nate Chapin wrote: > On 2015/04/15 22:46:11, Charlie Reis wrote: > > ...
5 years, 8 months ago (2015-04-16 21:33:01 UTC) #16
Nate Chapin
On 2015/04/16 21:33:01, Charlie Reis wrote: > On 2015/04/16 21:18:17, Nate Chapin wrote: > > ...
5 years, 8 months ago (2015-04-16 21:35:31 UTC) #17
Nate Chapin
On 2015/04/16 21:35:31, Nate Chapin wrote: > On 2015/04/16 21:33:01, Charlie Reis wrote: > > ...
5 years, 8 months ago (2015-04-16 21:36:02 UTC) #18
Nate Chapin
On 2015/04/16 21:36:02, Nate Chapin wrote: > On 2015/04/16 21:35:31, Nate Chapin wrote: > > ...
5 years, 8 months ago (2015-04-16 22:51:37 UTC) #19
Charlie Reis
On 2015/04/16 22:51:37, Nate Chapin wrote: > On 2015/04/16 21:36:02, Nate Chapin wrote: > > ...
5 years, 8 months ago (2015-04-16 23:44:39 UTC) #20
Nate Chapin
https://codereview.chromium.org/1002953004/diff/100001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1002953004/diff/100001/content/browser/site_per_process_browsertest.cc#newcode1989 content/browser/site_per_process_browsertest.cc:1989: EXPECT_EQ(NAVIGATION_TYPE_NEW_SUBFRAME, On 2015/04/15 22:46:11, Charlie Reis wrote: > Please ...
5 years, 8 months ago (2015-04-17 21:48:18 UTC) #21
Charlie Reis
Sorry for the long delay! I patched in this version and (2) is fixed. We ...
5 years, 8 months ago (2015-04-22 20:44:57 UTC) #22
Nate Chapin
The incorrect commit type in (1) is because of a known issue in blink that ...
5 years, 8 months ago (2015-04-22 21:59:23 UTC) #23
Charlie Reis
Deferring (1) to another patch sounds good to me. LGTM once the new patch is ...
5 years, 8 months ago (2015-04-22 22:04:29 UTC) #24
Nate Chapin
On 2015/04/22 22:04:29, Charlie Reis wrote: > Deferring (1) to another patch sounds good to ...
5 years, 8 months ago (2015-04-22 22:16:19 UTC) #25
Charlie Reis
Thanks, LGTM.
5 years, 8 months ago (2015-04-22 22:24:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002953004/160001
5 years, 8 months ago (2015-04-22 22:27:08 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 8 months ago (2015-04-22 23:53:08 UTC) #29
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 23:53:55 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/735aa03be45990a5e2feb3c38087e6f76eb920ac
Cr-Commit-Position: refs/heads/master@{#326404}

Powered by Google App Engine
This is Rietveld 408576698