Chromium Code Reviews
DescriptionFixes intent chooser being shown incorrectly when going from HTTPS to HTTP for
the same host.
Since there's no referrer when going from HTTPS to HTTP,
ExternalNavigationHandler incorrectly determines that an intent chooser should
be shown even when navigating to a link within the same host.
This uses WebContents' getLastCommittedUrl() to provide a fallback and avoid
showing an intent chooser in this case.
Adds ChromeBrowserTestRule as a JUnit rule so that AccountManagerHelper is
initialized properly, since some recent changes caused tests that rely on its
initialization to fail unless now explicitly initialized.
BUG=702089
Review-Url: https://codereview.chromium.org/2885983002
Cr-Commit-Position: refs/heads/master@{#472984}
Committed: https://chromium.googlesource.com/chromium/src/+/344a463dc6925a89b86baabffa306cf569303e01
Patch Set 1 #Patch Set 2 : Minor cleanup #
Total comments: 10
Patch Set 3 : . #Patch Set 4 : . #
Total comments: 6
Patch Set 5 : . #Patch Set 6 : . #
Messages
Total messages: 20 (13 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||