Bug 1291833 - remove little-used gWebRTCUI symbol in favor of natural module export. r=MattN

This commit is contained in:
Justin Dolske 2016-08-09 12:18:13 -07:00
parent b3ea5e55df
commit e4a2bde04b
3 changed files with 5 additions and 5 deletions

View File

@ -194,8 +194,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "SessionStore",
XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
"resource://gre/modules/FxAccounts.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "gWebRTCUI",
"resource:///modules/webrtcUI.jsm", "webrtcUI");
XPCOMUtils.defineLazyModuleGetter(this, "webrtcUI",
"resource:///modules/webrtcUI.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TabCrashHandler",
"resource:///modules/ContentCrashHandlers.jsm");

View File

@ -22,7 +22,7 @@
<label id="webRTC-selectWindow-label"
control="webRTC-selectWindow-menulist"/>
<menulist id="webRTC-selectWindow-menulist"
oncommand="gWebRTCUI.updateMainActionLabel(this);">
oncommand="webrtcUI.updateMainActionLabel(this);">
<menupopup id="webRTC-selectWindow-menupopup"/>
</menulist>
<description id="webRTC-all-windows-shared" hidden="true">&getUserMedia.allWindowsShared.message;</description>

View File

@ -492,8 +492,8 @@ var gTests = [
yield promisePopupNotificationShown("webRTC-sharingDevices", () => {
if ("nsISystemStatusBar" in Ci) {
let activeStreams = gWebRTCUI.getActiveStreams(true, false, false);
gWebRTCUI.showSharingDoorhanger(activeStreams[0], "Devices");
let activeStreams = webrtcUI.getActiveStreams(true, false, false);
webrtcUI.showSharingDoorhanger(activeStreams[0], "Devices");
}
else {
let win =