Ignore external protocol requests from frames without user action
commitb9af1696431352dffad62a0033f5cbd58762849c
authorjyquinn <jyquinn@chromium.org>
Mon, 8 Jun 2015 23:10:56 +0000 (8 16:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Jun 2015 23:11:41 +0000 (8 23:11 +0000)
tree1cbf9c4da6d6283a039552f002e302a3096e182e
parentcaf42281258e6c46ae0e96919e8101f16bacf2f5
Ignore external protocol requests from frames without user action

Adds check to [CRWWebController shouldOpenExternalURLRequest] that
prevents external URL subrequests from loading if the main document URL
has changed since the last user interaction.

BUG=348640

Review URL: https://codereview.chromium.org/1170853003

Cr-Commit-Position: refs/heads/master@{#333379}
ios/web/public/web_state/crw_web_delegate.h
ios/web/web_state/ui/crw_web_controller.mm