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 247971 25f2050820ff
parent 247970 77a1a1eaad91
child 247972 0e92a104e351
push id28887
push userkwierso@gmail.com
push date2015-06-11 01:10 +0000
treeherdermozilla-central@1fd19d8fc936 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1164114
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);