testing/mochitest/BrowserTestUtils/ContentEventListenerParent.jsm
author Ricky Stewart <rstewart@mozilla.com>
Tue, 04 Aug 2020 20:03:01 +0000
changeset 543275 622e280d4aa6d2aa62ce903fb28c06a675dbac2c
parent 501184 9944bddc7b997b433f348d5ad3603952f7a258b8
permissions -rw-r--r--
Bug 1657198 - Delete broken tests in `test_telemetry.py` r=dmajor These tests depend on the `mach uuid` command which was deleted with bug 1639509, and now that `mach uuid` is gone it's broken unconditionally. We could replace the reference to `uuid` with a new no-op `mach` command, but we're in the process of replacing our telemetry code with use of the `glean` API; and the new telemetry code won't have the same semantics (namely, we are unlikely to want to continue to guarantee that sub-`mach` invocations aren't covered by telemetry), so this test might as well just be deleted now. Differential Revision: https://phabricator.services.mozilla.com/D85911

/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* 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 = ["ContentEventListenerParent"];

const { BrowserTestUtils } = ChromeUtils.import(
  "resource://testing-common/BrowserTestUtils.jsm"
);

class ContentEventListenerParent extends JSWindowActorParent {
  receiveMessage(aMessage) {
    switch (aMessage.name) {
      case "ContentEventListener:Run": {
        BrowserTestUtils._receivedContentEventListener(
          aMessage.data.listenerId,
          this.browsingContext.top
        );
        break;
      }
    }
  }
}