Bug 1234629 - Part 3: Make bouncer's <intent-filter> set a larger subset of Fennec's <intent-filter> set. r=margaret a=sylvestre
☠☠ backed out by 927f615cf2c1 ☠ ☠
authorNick Alexander <nalexander@mozilla.com>
Tue, 08 Mar 2016 16:09:56 -0800
changeset 317380 4badb36f71b9059f1483011e4dbd1973eed471d5
parent 317379 59f660dca3525e884e4a627c76857f80629bc8cb
child 317381 808d8b35a3575019ce042d580b6a7bd80e8d0368
push id5712
push usernalexander@mozilla.com
push dateWed, 09 Mar 2016 00:20:07 +0000
treeherdermozilla-beta@46772bf935c3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, sylvestre
bugs1234629
milestone46.0
Bug 1234629 - Part 3: Make bouncer's <intent-filter> set a larger subset of Fennec's <intent-filter> set. r=margaret a=sylvestre MozReview-Commit-ID: FDP8nooyUds
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>