Bug 1250122 - Fix number of arguments to nsIPermissionManager::Add. r=mfinkle
authorGian-Carlo Pascutto <gcp@mozilla.com>
Sun, 06 Mar 2016 19:57:16 +0100
changeset 324965 db12e253eb848d6644284f3ca034ae01e0ca4ed6
parent 324964 7b9ef8accccea7ebd46406ff54e29f22f85f0f17
child 324966 dd46a77cdf656048cce156d66fe0988e2e34ba84
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs1250122
milestone47.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 1250122 - Fix number of arguments to nsIPermissionManager::Add. r=mfinkle MozReview-Commit-ID: 6MLRoage5ff
mobile/android/chrome/content/WebrtcUI.js
--- a/mobile/android/chrome/content/WebrtcUI.js
+++ b/mobile/android/chrome/content/WebrtcUI.js
@@ -154,17 +154,17 @@ var WebrtcUI = {
         let videoId = 0;
         if (inputs && inputs.videoSource != undefined)
           videoId = inputs.videoSource;
         if (videoDevices[videoId]) {
           allowedDevices.AppendElement(videoDevices[videoId]);
           let perms = Services.perms;
           // Although the lifetime is "session" it will be removed upon
           // use so it's more of a one-shot.
-          perms.add(aUri, "camera", perms.EXPIRE_SESSION);
+          perms.add(aUri, "camera", perms.ALLOW_ACTION, perms.EXPIRE_SESSION);
         }
 
         Services.obs.notifyObservers(allowedDevices, "getUserMedia:response:allow", aCallID);
       },
       positive: true
     }];
   },