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

Issue 317703004: Simplify AreURLsInPageNavigation (Closed)

Created:
6 years, 6 months ago by Nate Chapin
Modified:
6 years, 6 months ago
Reviewers:
Tom Sepez, sky, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Visibility:
Public.

Description

Simplify AreURLsInPageNavigation The first case guarantees we trust the renderer's definition of an in-page navigation if the urls before and after navigation are on the same origin. An in-page navigation is impossible cross-origin, so this single check is sufficient. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279232

Patch Set 1 #

Total comments: 1

Patch Set 2 : Kill the renderer if it claims a cross-origin in-page navigation #

Total comments: 2

Patch Set 3 : Make layout tests happy #

Patch Set 4 : + fix comment typos #

Total comments: 12

Patch Set 5 : Don't check origin if web security is disabled #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -41 lines) Patch
M content/browser/frame_host/navigation_controller_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 4 chunks +26 lines, -21 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 1 chunk +15 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Nate Chapin
6 years, 6 months ago (2014-06-06 17:18:59 UTC) #1
nasko
LGTM with a nit https://codereview.chromium.org/317703004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode107 content/browser/frame_host/navigation_controller_impl.cc:107: // See NavigationController::IsURLInPageNavigation for how ...
6 years, 6 months ago (2014-06-06 17:21:56 UTC) #2
Tom Sepez
lgtm
6 years, 6 months ago (2014-06-06 18:12:09 UTC) #3
Nate Chapin
On 2014/06/06 18:12:09, Tom Sepez wrote: > lgtm Updated with a more detailed comment for ...
6 years, 6 months ago (2014-06-06 20:56:42 UTC) #4
Tom Sepez
> allow AreURLsInPageNavigation to kill the renderer if the renderer > tries to claim that ...
6 years, 6 months ago (2014-06-06 21:01:36 UTC) #5
nasko
Even more LGTM! Thanks for thinking about security! https://codereview.chromium.org/317703004/diff/20001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/20001/content/browser/frame_host/navigation_controller_impl.cc#newcode114 content/browser/frame_host/navigation_controller_impl.cc:114: // ...
6 years, 6 months ago (2014-06-06 21:09:46 UTC) #6
Nate Chapin
sky: Would you mind reviewing the content/browser/web_contents/ changes?
6 years, 6 months ago (2014-06-06 21:11:40 UTC) #7
sky
LGTM
6 years, 6 months ago (2014-06-06 21:46:08 UTC) #8
Nate Chapin
nasko, do these cases seem reasonable to you? https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool ...
6 years, 6 months ago (2014-06-06 22:45:23 UTC) #9
nasko
Couple of comments. https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool is_same_origin = existing_url.is_empty() || On ...
6 years, 6 months ago (2014-06-09 18:49:44 UTC) #10
Nate Chapin
https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool is_same_origin = existing_url.is_empty() || On 2014/06/09 18:49:43, nasko ...
6 years, 6 months ago (2014-06-09 18:53:49 UTC) #11
nasko
https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool is_same_origin = existing_url.is_empty() || On 2014/06/09 18:53:49, Nate ...
6 years, 6 months ago (2014-06-09 18:59:25 UTC) #12
Nate Chapin
https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool is_same_origin = existing_url.is_empty() || On 2014/06/09 18:59:24, nasko ...
6 years, 6 months ago (2014-06-09 19:02:55 UTC) #13
nasko
Still LGTM https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode124 content/browser/frame_host/navigation_controller_impl.cc:124: bool is_same_origin = existing_url.is_empty() || On 2014/06/09 ...
6 years, 6 months ago (2014-06-09 20:41:29 UTC) #14
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-09 20:48:03 UTC) #15
Nate Chapin
On 2014/06/09 20:41:29, nasko wrote: > Still LGTM > > https://codereview.chromium.org/317703004/diff/60001/content/browser/frame_host/navigation_controller_impl.cc > File content/browser/frame_host/navigation_controller_impl.cc (right): ...
6 years, 6 months ago (2014-06-09 20:48:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/317703004/60001
6 years, 6 months ago (2014-06-09 20:51:58 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 09:00:37 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 12:39:28 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/40034)
6 years, 6 months ago (2014-06-10 12:39:29 UTC) #20
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-10 18:27:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/317703004/60001
6 years, 6 months ago (2014-06-10 18:31:16 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 07:20:56 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 08:39:42 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/40565)
6 years, 6 months ago (2014-06-11 08:39:42 UTC) #25
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-19 17:29:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/317703004/60001
6 years, 6 months ago (2014-06-19 17:31:19 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-19 21:56:14 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 22:03:56 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/43894)
6 years, 6 months ago (2014-06-19 22:03:57 UTC) #30
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-20 16:14:47 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/317703004/60001
6 years, 6 months ago (2014-06-20 16:15:50 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 19:26:05 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 20:34:14 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/40223)
6 years, 6 months ago (2014-06-20 20:34:15 UTC) #35
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-23 20:44:15 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/317703004/100001
6 years, 6 months ago (2014-06-23 20:45:31 UTC) #37
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 23:52:31 UTC) #38
Message was sent while issue was closed.
Change committed as 279232

Powered by Google App Engine
This is Rietveld 408576698