bug 1523104: remote: remove unused EventEmitter interface from Target; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 05 Mar 2019 12:25:12 -0800
changeset 521120 7ab41ce7425a4402cfffb3cdd17241081972e295
parent 521119 0c54ddfc1b58319fc5f90b8291bb9e1aeeeffbca
child 521121 45eecaf3a611fd15617ed9f694b02facee912ea8
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 EventEmitter interface from Target; r=ato
remote/Target.jsm
remote/test/unit/test_Session.js
--- a/remote/Target.jsm
+++ b/remote/Target.jsm
@@ -1,17 +1,16 @@
 /* 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/. */
 
 "use strict";
 
 var EXPORTED_SYMBOLS = ["Target"];
 
-const {EventEmitter} = ChromeUtils.import("chrome://remote/content/EventEmitter.jsm");
 const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
 const {TargetListener} = ChromeUtils.import("chrome://remote/content/TargetListener.jsm");
 const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyServiceGetter(this, "Favicons",
     "@mozilla.org/browser/favicon-service;1", "nsIFaviconService");
 
 /**
@@ -19,18 +18,16 @@ XPCOMUtils.defineLazyServiceGetter(this,
  *
  * Targets can be a document (page), an OOP frame, a background
  * document, or a worker.  They can all run in dedicated process or frame.
  */
 class Target {
   constructor(browser) {
     this.browser = browser;
     this.debugger = new TargetListener(this);
-
-    EventEmitter.decorate(this);
   }
 
   connect() {
     Services.obs.addObserver(this, "message-manager-disconnect");
     this.debugger.listen();
   }
 
   disconnect() {
--- a/remote/test/unit/test_Session.js
+++ b/remote/test/unit/test_Session.js
@@ -1,21 +1,19 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
-const {EventEmitter} = ChromeUtils.import("chrome://remote/content/EventEmitter.jsm");
 const {Session} = ChromeUtils.import("chrome://remote/content/Session.jsm");
 
 const connection = {onmessage: () => {}};
 
 class MockTarget {
   constructor() {
-    EventEmitter.decorate(this);
   }
 
   get browsingContext() {
     return {id: 42};
   }
 
   get mm() {
     return {