Bug 974443 - The WebRTC toolbar button seems broken when the tab using a device is already selected, r=felipe.
authorFlorian Quèze <florian@queze.net>
Thu, 27 Feb 2014 13:36:12 +0100
changeset 171436 9da8894c69183ad84d7f65872490c249304e5e4f
parent 171435 074afb40ea0eef5c9030ad96685ab3c309695bb7
child 171437 3b92bea7b2e78893609424e264f42b25f6d7069d
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersfelipe
bugs974443
milestone30.0a1
Bug 974443 - The WebRTC toolbar button seems broken when the tab using a device is already selected, r=felipe.
browser/base/content/browser-webrtcUI.js
--- a/browser/base/content/browser-webrtcUI.js
+++ b/browser/base/content/browser-webrtcUI.js
@@ -54,10 +54,12 @@ let WebrtcIndicator = {
 
     let browserWindow = streamData.browser.ownerDocument.defaultView;
     if (streamData.tab) {
       browserWindow.gBrowser.selectedTab = streamData.tab;
     } else {
       streamData.browser.focus();
     }
     browserWindow.focus();
+    PopupNotifications.getNotification("webRTC-sharingDevices",
+                                       streamData.browser).reshow();
   }
 }