Bug 1393582 - Remove CastingApps support for Firefox desktop. r=felipe

MozReview-Commit-ID: B2bqiNXibPP
This commit is contained in:
Perry Jiang
2017-08-25 14:03:47 -07:00
parent fd3b0fb6d1
commit 302b3cd445
10 changed files with 1 additions and 94 deletions

View File

@@ -93,19 +93,6 @@ addMessageListener("MixedContent:ReenableProtection", function() {
docShell.mixedContentChannel = null;
});
addMessageListener("SecondScreen:tab-mirror", function(message) {
if (!Services.prefs.getBoolPref("browser.casting.enabled")) {
return;
}
let app = SimpleServiceDiscovery.findAppForService(message.data.service);
if (app) {
let width = content.innerWidth;
let height = content.innerHeight;
let viewport = {cssWidth: width, cssHeight: height, width, height};
app.mirror(function() {}, content, viewport, function() {}, content);
}
});
var AboutHomeListener = {
init(chromeGlobal) {
chromeGlobal.addEventListener("AboutHomeLoad", this, false, true);