summaryrefslogtreecommitdiff
path: root/base/content/browser.js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-12-07 17:45:41 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-12-07 17:45:41 -0500
commit86869ff082ea45317e16adc5781da0a18049dee8 (patch)
tree6529e4e555bcbc9be5a0dc424d38bac100ae2a91 /base/content/browser.js
parente006c851dc394fac161695015a26a74194f01955 (diff)
downloadiceweasel-uxp-86869ff082ea45317e16adc5781da0a18049dee8.tar.gz
Backport UXP #1390 - Remove application support for the Presentation API
Diffstat (limited to 'base/content/browser.js')
-rwxr-xr-xbase/content/browser.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/base/content/browser.js b/base/content/browser.js
index e86c050..24649f8 100755
--- a/base/content/browser.js
+++ b/base/content/browser.js
@@ -16,7 +16,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
["AddonWatcher", "resource://gre/modules/AddonWatcher.jsm"],
["AppConstants", "resource://gre/modules/AppConstants.jsm"],
["BrowserUtils", "resource://gre/modules/BrowserUtils.jsm"],
- ["CastingApps", "resource:///modules/CastingApps.jsm"],
["CharsetMenu", "resource://gre/modules/CharsetMenu.jsm"],
["Color", "resource://gre/modules/Color.jsm"],
["ContentSearch", "resource:///modules/ContentSearch.jsm"],
@@ -38,7 +37,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
["RecentWindow", "resource:///modules/RecentWindow.jsm"],
["SessionStore", "resource:///modules/sessionstore/SessionStore.jsm"],
["ShortcutUtils", "resource://gre/modules/ShortcutUtils.jsm"],
- ["SimpleServiceDiscovery", "resource://gre/modules/SimpleServiceDiscovery.jsm"],
["SitePermissions", "resource:///modules/SitePermissions.jsm"],
["TabCrashHandler", "resource:///modules/ContentCrashHandlers.jsm"],
["Task", "resource://gre/modules/Task.jsm"],
@@ -2964,35 +2962,6 @@ function BrowserFullScreen()
window.fullScreen = !window.fullScreen;
}
-function mirrorShow(popup) {
- let services = [];
- if (Services.prefs.getBoolPref("browser.casting.enabled")) {
- services = CastingApps.getServicesForMirroring();
- }
- popup.ownerDocument.getElementById("menu_mirrorTabCmd").hidden = !services.length;
-}
-
-function mirrorMenuItemClicked(event) {
- gBrowser.selectedBrowser.messageManager.sendAsyncMessage("SecondScreen:tab-mirror",
- {service: event.originalTarget._service});
-}
-
-function populateMirrorTabMenu(popup) {
- popup.innerHTML = null;
- if (!Services.prefs.getBoolPref("browser.casting.enabled")) {
- return;
- }
- let doc = popup.ownerDocument;
- let services = CastingApps.getServicesForMirroring();
- services.forEach(service => {
- let item = doc.createElement("menuitem");
- item.setAttribute("label", service.friendlyName);
- item._service = service;
- item.addEventListener("command", mirrorMenuItemClicked);
- popup.appendChild(item);
- });
-}
-
function getWebNavigation()
{
return gBrowser.webNavigation;