bug 1523104: remote: remove unused nsIRemoteAgent interface; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 12 Feb 2019 07:00:45 -0800
changeset 521080 8231251f03a4
parent 521079 819bb544204d
child 521081 51927b210a12
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: remove unused nsIRemoteAgent interface; r=ato
remote/RemoteAgent.js
remote/moz.build
remote/nsIRemoteAgent.idl
--- a/remote/RemoteAgent.js
+++ b/remote/RemoteAgent.js
@@ -38,18 +38,16 @@ class ParentRemoteAgent {
     this.server = null;
     this.targets = new Targets();
 
     this.tabs = new TabObserver({registerExisting: true});
     this.tabs.on("open", tab => this.targets.connect(tab.linkedBrowser));
     this.tabs.on("close", tab => this.targets.disconnect(tab.linkedBrowser));
   }
 
-  // nsIRemoteAgent
-
   get listening() {
     return !!this.server && !this.server._socketClosed;
   }
 
   listen(address) {
     if (!(address instanceof Ci.nsIURI)) {
       throw new TypeError(`Expected nsIURI: ${address}`);
     }
@@ -172,17 +170,16 @@ class ParentRemoteAgent {
            "                     listen on port 9222.\n";
   }
 
   // XPCOM
 
   get QueryInterface() {
     return ChromeUtils.generateQI([
       Ci.nsICommandLineHandler,
-      Ci.nsIRemoteAgent,
     ]);
   }
 }
 
 class Targets {
   constructor() {
     // browser context ID -> Target<XULElement>
     this._targets = new Map();
--- a/remote/moz.build
+++ b/remote/moz.build
@@ -8,18 +8,16 @@ DIRS += [
 ]
 
 EXTRA_COMPONENTS += [
     "RemoteAgent.js",
     "RemoteAgent.manifest",
 ]
 
 JAR_MANIFESTS += ["jar.mn"]
-XPIDL_MODULE = "remote"
-XPIDL_SOURCES += ["nsIRemoteAgent.idl"]
 
 with Files("**"):
     BUG_COMPONENT = ("DevTools", "Remote Agent")
 
 with Files("doc/**"):
     SCHEDULES.exclusive = ["docs"]
 
 SPHINX_TREES["/remote"] = "doc"
deleted file mode 100644
--- a/remote/nsIRemoteAgent.idl
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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/. */
-
-#include "nsISupports.idl"
-
-%{C++
-#define NS_REMOTE_AGENT_CONTRACTID "@mozilla.org/remote/agent"
-%}
-
-/**
- * Remote agent is a low-level debugging interface
- * based on the CDP protocol.
- */
-[scriptable, uuid(ccbd36a6-a8fc-4930-b747-8be79c7a04b2)]
-interface nsIRemoteAgent : nsISupports
-{
-  /**
-   * Determine whether the remote agent is currently listening,
-   * i.e. accepting new connections.
-   */
-  readonly attribute boolean listening;
-
-  /**
-   * Start the listener.
-   *
-   * Takes a network address string of the form [<host>][:<port>].
-   * :0 will have the system atomically select a free port.
-   */
-  void listen(in AUTF8String address);
-
-  /** Close the listener. */
-  void close();
-
-  /** The network scheme, i.e. "http", the listener is currently bound to. */
-  readonly attribute AUTF8String scheme;
-
-  /** The host name the listener is currently bound to. */
-  readonly attribute AUTF8String host;
-
-  /** The port the listener socket is currently bound to. */
-  readonly attribute long port;
-};