diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-12-14 14:37:24 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-12-14 14:37:24 -0500 |
commit | 4e34c57467a8d38d593c6fbb7c0d63c3257e99f0 (patch) | |
tree | ff5ee62f90cebe34f23f734669e2c526d783caf0 /application/palemoon/base/content/browser-webrtcUI.js | |
parent | dacb3da00bd17e69f1a8f1080668808a5f3fe431 (diff) | |
download | UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.gz UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.lz UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.xz UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.zip |
Remove Pale Moon from the Unified XUL Platform repository
Development will proceed at https://github.com/MoonchildProductions/Pale-Moon
Diffstat (limited to 'application/palemoon/base/content/browser-webrtcUI.js')
-rw-r--r-- | application/palemoon/base/content/browser-webrtcUI.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/application/palemoon/base/content/browser-webrtcUI.js b/application/palemoon/base/content/browser-webrtcUI.js deleted file mode 100644 index d59134ce5..000000000 --- a/application/palemoon/base/content/browser-webrtcUI.js +++ /dev/null @@ -1,55 +0,0 @@ -# -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -var WebrtcIndicator = { - init: function () { - let temp = {}; - Cu.import("resource:///modules/webrtcUI.jsm", temp); - this.UIModule = temp.webrtcUI; - - this.updateButton(); - }, - - get button() { - delete this.button; - return this.button = document.getElementById("webrtc-status-button"); - }, - - updateButton: function () { - this.button.hidden = !this.UIModule.showGlobalIndicator; - }, - - fillPopup: function (aPopup) { - this._menuitemData = new WeakMap; - for (let streamData of this.UIModule.activeStreams) { - let menuitem = document.createElement("menuitem"); - menuitem.setAttribute("label", streamData.uri); - menuitem.setAttribute("tooltiptext", streamData.uri); - - this._menuitemData.set(menuitem, streamData); - - aPopup.appendChild(menuitem); - } - }, - - clearPopup: function (aPopup) { - while (aPopup.lastChild) - aPopup.removeChild(aPopup.lastChild); - }, - - menuCommand: function (aMenuitem) { - let streamData = this._menuitemData.get(aMenuitem); - if (!streamData) - return; - - let browserWindow = streamData.browser.ownerDocument.defaultView; - if (streamData.tab) { - browserWindow.gBrowser.selectedTab = streamData.tab; - } else { - streamData.browser.focus(); - } - browserWindow.focus(); - } -} |