diff options
author | Marcin Kosiba <mkosiba@google.com> | 2014-05-09 17:47:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-09 17:47:43 +0000 |
commit | d42aa9ebbf2647445c2848ea9ede6c526bc59f3a (patch) | |
tree | 51647aacb0fff53fc1fc6086fbba247c893cddec /src/com/android/browser | |
parent | 959c49d83d3a753bedca8292ac414b1f4486f71e (diff) | |
parent | bac9c87bcdfba871f325bda3266b077bcee6b93c (diff) | |
download | packages_apps_Browser-d42aa9ebbf2647445c2848ea9ede6c526bc59f3a.zip packages_apps_Browser-d42aa9ebbf2647445c2848ea9ede6c526bc59f3a.tar.gz packages_apps_Browser-d42aa9ebbf2647445c2848ea9ede6c526bc59f3a.tar.bz2 |
am bac9c87b: Sanitize selector Intent when handling intent: scheme.
* commit 'bac9c87bcdfba871f325bda3266b077bcee6b93c':
Sanitize selector Intent when handling intent: scheme.
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/UrlHandler.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/UrlHandler.java b/src/com/android/browser/UrlHandler.java index 167d410..e21e3e8 100644 --- a/src/com/android/browser/UrlHandler.java +++ b/src/com/android/browser/UrlHandler.java @@ -160,6 +160,11 @@ public class UrlHandler { // security (only access to BROWSABLE activities). intent.addCategory(Intent.CATEGORY_BROWSABLE); intent.setComponent(null); + Intent selector = intent.getSelector(); + if (selector != null) { + selector.addCategory(Intent.CATEGORY_BROWSABLE); + selector.setComponent(null); + } // Re-use the existing tab if the intent comes back to us if (tab != null) { if (tab.getAppId() == null) { |