Bug 785485 - No way to clear "Open this page with an app" permissions granted from doorhanger notifications. r=mcomella
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Mon, 27 Aug 2012 17:50:32 -0700
changeset 109925 386e9555a105a49baeb5615ad0bf5c296e61b195
parent 109924 c1a0b963ffb1b583c87abb6b9c2fa0f0bb793269
child 109926 4a09ef58cba1a0887e881c87ef581261a90da326
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs785485
milestone18.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 785485 - No way to clear "Open this page with an app" permissions granted from doorhanger notifications. r=mcomella
mobile/android/chrome/content/browser.js
mobile/android/locales/en-US/chrome/browser.properties
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -5369,17 +5369,17 @@ var PluginHelper = {
 
     return tagMimetype;
   }
 };
 
 var PermissionsHelper = {
 
   _permissonTypes: ["password", "geolocation", "popup", "indexedDB",
-                    "offline-app", "desktop-notification", "plugins"],
+                    "offline-app", "desktop-notification", "plugins", "native-intent"],
   _permissionStrings: {
     "password": {
       label: "password.rememberPassword",
       allowed: "password.remember",
       denied: "password.never"
     },
     "geolocation": {
       label: "geolocation.shareLocation",
@@ -5405,16 +5405,21 @@ var PermissionsHelper = {
       label: "desktopNotification.useNotifications",
       allowed: "desktopNotification.allow",
       denied: "desktopNotification.dontAllow"
     },
     "plugins": {
       label: "clickToPlayPlugins.playPlugins",
       allowed: "clickToPlayPlugins.yes",
       denied: "clickToPlayPlugins.no"
+    },
+    "native-intent": {
+      label: "helperapps.openWithList2",
+      allowed: "helperapps.always",
+      denied: "helperapps.never"
     }
   },
 
   init: function init() {
     Services.obs.addObserver(this, "Permissions:Get", false);
     Services.obs.addObserver(this, "Permissions:Clear", false);
   },
 
--- a/mobile/android/locales/en-US/chrome/browser.properties
+++ b/mobile/android/locales/en-US/chrome/browser.properties
@@ -281,8 +281,10 @@ remoteIncomingPromptMessage=An incoming 
 remoteIncomingPromptDisable=Disable
 
 # Helper apps
 helperapps.open=Open
 helperapps.ignore=Ignore
 helperapps.dontAskAgain=Don't ask again for this site
 helperapps.openWithApp2=Open With %S App
 helperapps.openWithList2=Open With an App
+helperapps.always=Always
+helperapps.never=Never