# HG changeset patch # User Felipe Gomes # Date 1528319721 10800 # Node ID f1bc66e3947d0afdc2a4f14376dee27849283ef7 # Parent 1ba549899afdbbd5ca43d241c003d3024815feae Bug 1467282 - Stop shipping SimpleServiceDiscovery.jsm on Desktop, and remove unused reference to it. r=jaws MozReview-Commit-ID: JgliLwd3OaG diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -42,17 +42,16 @@ XPCOMUtils.defineLazyModuleGetters(this, ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.jsm", PromiseUtils: "resource://gre/modules/PromiseUtils.jsm", ReaderMode: "resource://gre/modules/ReaderMode.jsm", ReaderParent: "resource:///modules/ReaderParent.jsm", RecentWindow: "resource:///modules/RecentWindow.jsm", SafeBrowsing: "resource://gre/modules/SafeBrowsing.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", TelemetryStopwatch: "resource://gre/modules/TelemetryStopwatch.jsm", Translation: "resource:///modules/translation/Translation.jsm", UpdateUtils: "resource://gre/modules/UpdateUtils.jsm", Utils: "resource://gre/modules/sessionstore/Utils.jsm", Weave: "resource://services-sync/main.js", WebNavigationFrames: "resource://gre/modules/WebNavigationFrames.jsm", diff --git a/browser/base/content/tab-content.js b/browser/base/content/tab-content.js --- a/browser/base/content/tab-content.js +++ b/browser/base/content/tab-content.js @@ -17,31 +17,16 @@ ChromeUtils.defineModuleGetter(this, "Br ChromeUtils.defineModuleGetter(this, "Utils", "resource://gre/modules/sessionstore/Utils.jsm"); ChromeUtils.defineModuleGetter(this, "PrivateBrowsingUtils", "resource://gre/modules/PrivateBrowsingUtils.jsm"); ChromeUtils.defineModuleGetter(this, "AboutReader", "resource://gre/modules/AboutReader.jsm"); ChromeUtils.defineModuleGetter(this, "ReaderMode", "resource://gre/modules/ReaderMode.jsm"); -XPCOMUtils.defineLazyGetter(this, "SimpleServiceDiscovery", function() { - let ssdp = ChromeUtils.import("resource://gre/modules/SimpleServiceDiscovery.jsm", {}).SimpleServiceDiscovery; - // Register targets - ssdp.registerDevice({ - id: "roku:ecp", - target: "roku:ecp", - factory(aService) { - ChromeUtils.import("resource://gre/modules/RokuApp.jsm"); - return new RokuApp(aService); - }, - types: ["video/mp4"], - extensions: ["mp4"] - }); - return ssdp; -}); // TabChildGlobal var global = this; addEventListener("MozDOMPointerLock:Entered", function(aEvent) { sendAsyncMessage("PointerLock:Entered", { originNoSuffix: aEvent.target.nodePrincipal.originNoSuffix diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -52,17 +52,16 @@ XPCOMUtils.defineLazyModuleGetters(this, ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.jsm", ReaderParent: "resource:///modules/ReaderParent.jsm", RecentWindow: "resource:///modules/RecentWindow.jsm", RemotePrompt: "resource:///modules/RemotePrompt.jsm", SafeBrowsing: "resource://gre/modules/SafeBrowsing.jsm", Sanitizer: "resource:///modules/Sanitizer.jsm", SessionStore: "resource:///modules/sessionstore/SessionStore.jsm", ShellService: "resource:///modules/ShellService.jsm", - SimpleServiceDiscovery: "resource://gre/modules/SimpleServiceDiscovery.jsm", TabCrashHandler: "resource:///modules/ContentCrashHandlers.jsm", UIState: "resource://services-sync/UIState.jsm", WebChannel: "resource://gre/modules/WebChannel.jsm", WindowsRegistry: "resource://gre/modules/WindowsRegistry.jsm", }); /* global AboutHome:false, ContentPrefServiceParent:false, ContentSearch:false, UpdateListener:false, webrtcUI:false */ diff --git a/toolkit/modules/moz.build b/toolkit/modules/moz.build --- a/toolkit/modules/moz.build +++ b/toolkit/modules/moz.build @@ -229,18 +229,16 @@ EXTRA_JS_MODULES += [ 'PromiseUtils.jsm', 'RemoteController.js', 'RemoteFinder.jsm', 'RemotePageManager.jsm', 'RemoteSecurityUI.jsm', 'RemoteWebProgress.jsm', 'ResetProfile.jsm', 'ResponsivenessMonitor.jsm', - 'secondscreen/RokuApp.jsm', - 'secondscreen/SimpleServiceDiscovery.jsm', 'SelectContentHelper.jsm', 'SelectParentHelper.jsm', 'ServiceRequest.jsm', 'Services.jsm', 'sessionstore/FormData.jsm', 'sessionstore/ScrollPosition.jsm', 'ShortcutUtils.jsm', 'Sqlite.jsm', @@ -284,16 +282,20 @@ if 'Android' != CONFIG['OS_TARGET']: 'LightweightThemeConsumer.jsm', ] DIRS += [ 'subprocess', ] else: DEFINES['ANDROID'] = True + EXTRA_JS_MODULES += [ + 'secondscreen/RokuApp.jsm', + 'secondscreen/SimpleServiceDiscovery.jsm', + ] if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': EXTRA_JS_MODULES += [ 'WindowsRegistry.jsm', ] for var in ('ANDROID_PACKAGE_NAME',