Bug 1164114 - Open Intent URIs without a specific package set. r?margaret
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 08 Jun 2015 16:17:35 -0700
changeset 247754 25f2050820ff
parent 247753 77a1a1eaad91
child 247755 0e92a104e351
push id13442
push usermichael.l.comella@gmail.com
push date2015-06-09 22:09 +0000
treeherderfx-team@25f2050820ff [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1164114
milestone41.0a1
Bug 1164114 - Open Intent URIs without a specific package set. r?margaret The Android Activity chooser dialog will appear.
mobile/android/base/GeckoAppShell.java
--- a/mobile/android/base/GeckoAppShell.java
+++ b/mobile/android/base/GeckoAppShell.java
@@ -1202,21 +1202,16 @@ public class GeckoAppShell
 
             // Only handle applications which can accept arbitrary data from a browser.
             intent.addCategory(Intent.CATEGORY_BROWSABLE);
 
             // Prevent site from explicitly opening our internal activities, which can leak data.
             intent.setComponent(null);
             nullIntentSelector(intent);
 
-            // We only handle explicit Intents at the moment (see bug 851693 comment 20).
-            if (intent.getPackage() == null) {
-                return null;
-            }
-
             return intent;
         }
 
         // Compute our most likely intent, then check to see if there are any
         // custom handlers that would apply.
         // Start with the original URI. If we end up modifying it, we'll
         // overwrite it.
         final String extension = MimeTypeMap.getFileExtensionFromUrl(targetURI);