Bug 878939 - Display the requesting URI's host instead of asciiHost in camera/microphone access requests. r=dolske
authorDão Gottwald <dao@mozilla.com>
Sat, 15 Jun 2013 17:17:15 +0200
changeset 146685 4aa873f715b3051274f636f2a4aec31463d86ea8
parent 146684 d8e2d22c56cce825814e4fb76f21bcb940985ef5
child 146686 ce49a3bc870cd094427a3e7225ac843e910f74c8
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske
bugs878939
milestone24.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 878939 - Display the requesting URI's host instead of asciiHost in camera/microphone access requests. r=dolske
browser/modules/webrtcUI.jsm
--- a/browser/modules/webrtcUI.jsm
+++ b/browser/modules/webrtcUI.jsm
@@ -115,17 +115,17 @@ function prompt(aWindowID, aCallID, aAud
   else if (videoDevices.length)
     requestType = "Camera";
   else {
     denyRequest(aCallID, "NO_DEVICES_FOUND");
     return;
   }
 
   let contentWindow = Services.wm.getOuterWindowWithId(aWindowID);
-  let host = contentWindow.document.documentURIObject.asciiHost;
+  let host = contentWindow.document.documentURIObject.host;
   let browser = getBrowserForWindow(contentWindow);
   let chromeDoc = browser.ownerDocument;
   let chromeWin = chromeDoc.defaultView;
   let stringBundle = chromeWin.gNavigatorBundle;
   let message = stringBundle.getFormattedString("getUserMedia.share" + requestType + ".message",
                                                 [ host ]);
 
   function listDevices(menupopup, devices) {