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

Issue 304763002: Trust the renderer's same-document navigation flag if it is a same-origin nav. (Closed)

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

Description

Trust the renderer's same-document navigation flag if it is a same-origin nav. Currently in AreURLsInPageNavigation, we only trust renderer_says_in_page if the before and after urls are identical. This prevents us from correctly classifying history.pushState and history.replaceState navigations as in-page. Navigations via the history API are required to be same-origin, but can differ by more than just the ref component, so we get the correct behavior without the renderer process being able to lie about a cross-origin navigation. BUG=138324 TEST=Added cases to NavigationControllerTest.IsInPageNavigation Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274734

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Update comments in active_script_controller_unittest.cc #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : isNavigationInPage->isFragmentNavigation, with caveat on the name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -34 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/active_script_controller_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/android/web_contents_observer_android.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 1 2 1 chunk +3 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 4 chunks +27 lines, -7 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/WebContentsObserverAndroid.java View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M content/public/test/test_renderer_host.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Nate Chapin
6 years, 6 months ago (2014-05-29 18:26:09 UTC) #1
Tom Sepez
lgtm
6 years, 6 months ago (2014-05-29 18:39:23 UTC) #2
nasko
Overall looks fine, but the test harness change isn't quite clear to me. https://codereview.chromium.org/304763002/diff/60001/chrome/browser/extensions/active_script_controller_unittest.cc File ...
6 years, 6 months ago (2014-05-29 22:59:30 UTC) #3
Nate Chapin
https://codereview.chromium.org/304763002/diff/60001/chrome/browser/extensions/active_script_controller_unittest.cc File chrome/browser/extensions/active_script_controller_unittest.cc (right): https://codereview.chromium.org/304763002/diff/60001/chrome/browser/extensions/active_script_controller_unittest.cc#newcode222 chrome/browser/extensions/active_script_controller_unittest.cc:222: Reload(); On 2014/05/29 22:59:30, nasko wrote: > nit: Either ...
6 years, 6 months ago (2014-05-29 23:03:45 UTC) #4
nasko
lgtm
6 years, 6 months ago (2014-05-29 23:12:59 UTC) #5
Nate Chapin
+jochen, would you mind giving this an OWNERS look?
6 years, 6 months ago (2014-05-29 23:47:05 UTC) #6
jam
lgtm
6 years, 6 months ago (2014-05-30 17:20:28 UTC) #7
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-05-30 17:22:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/304763002/80001
6 years, 6 months ago (2014-05-30 17:25:43 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 04:39:41 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 05:54:41 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158594)
6 years, 6 months ago (2014-05-31 05:54:41 UTC) #12
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-05-31 22:30:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/304763002/80001
6 years, 6 months ago (2014-05-31 22:31:09 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-01 00:11:34 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-01 01:43:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158621)
6 years, 6 months ago (2014-06-01 01:43:22 UTC) #17
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-01 19:02:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/304763002/80001
6 years, 6 months ago (2014-06-01 19:03:04 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-01 20:40:43 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-01 22:20:46 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158689)
6 years, 6 months ago (2014-06-01 22:20:46 UTC) #22
Nate Chapin
mkosiba@, I'd appreciate your opinion on the change to content/browser/android/web_contents_observer_android.cc
6 years, 6 months ago (2014-06-02 21:21:48 UTC) #23
mkosiba (inactive)
On 2014/06/02 21:21:48, Nate Chapin wrote: > mkosiba@, I'd appreciate your opinion on the change ...
6 years, 6 months ago (2014-06-03 11:31:08 UTC) #24
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-03 16:48:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/304763002/130001
6 years, 6 months ago (2014-06-03 16:49:32 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 20:20:17 UTC) #27
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-03 20:48:10 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/304763002/130001
6 years, 6 months ago (2014-06-03 20:49:18 UTC) #29
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 09:00:48 UTC) #30
Message was sent while issue was closed.
Change committed as 274734

Powered by Google App Engine
This is Rietveld 408576698