DescriptionTrust 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 #Messages
Total messages: 30 (0 generated)
|