Bug 1234629 - Part 3: Make bouncer's <intent-filter> set a larger subset of Fennec's <intent-filter> set. r?margaret draft
authorNick Alexander <nalexander@mozilla.com>
Wed, 27 Jan 2016 15:44:29 -0800
changeset 326427 4080800d3ee4ee2c66481756ca38cce747ca63a1
parent 326426 55d8139ba706dca45c679301c854ef65d7845afe
child 326428 819d041ea39212963ddbdd8c3dc8f46b34dc2cb0
push id10152
push usernalexander@mozilla.com
push dateWed, 27 Jan 2016 23:52:39 +0000
reviewersmargaret
bugs1234629
milestone47.0a1
Bug 1234629 - Part 3: Make bouncer's <intent-filter> set a larger subset of Fennec's <intent-filter> set. r?margaret
mobile/android/bouncer/AndroidManifest.xml.in
--- a/mobile/android/bouncer/AndroidManifest.xml.in
+++ b/mobile/android/bouncer/AndroidManifest.xml.in
@@ -35,19 +35,61 @@
 #else
                  android:debuggable="false">
 #endif
 
         <activity
             android:name="@MOZ_ANDROID_BROWSER_INTENT_CLASS@"
             android:label="@MOZ_APP_DISPLAYNAME@"
             android:theme="@android:style/Theme.Translucent">
+
+            <!-- Aping org.mozilla.gecko.BrowserApp. -->
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
+                <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
+                <category android:name="android.intent.category.APP_BROWSER" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
+            <meta-data android:name="com.sec.minimode.icon.portrait.normal"
+                       android:resource="@drawable/icon"/>
+
+            <meta-data android:name="com.sec.minimode.icon.landscape.normal"
+                       android:resource="@drawable/icon" />
+
+            <intent-filter>
+                <action android:name="android.intent.action.WEB_SEARCH" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="" />
+                <data android:scheme="http" />
+                <data android:scheme="https" />
+            </intent-filter>
+
+            <!-- Aping org.mozilla.gecko.tabqueue.TabQueueDispatcher. -->
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="http" />
+                <data android:scheme="https" />
+                <data android:scheme="about" />
+                <data android:scheme="javascript" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.BROWSABLE" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:scheme="file" />
+                <data android:scheme="http" />
+                <data android:scheme="https" />
+                <data android:mimeType="text/html"/>
+                <data android:mimeType="text/plain"/>
+                <data android:mimeType="application/xhtml+xml"/>
             </intent-filter>
         </activity>
 
         <service
             android:name="org.mozilla.bouncer.BouncerService"
             android:exported="false" />
 
     </application>