Commit ae48ea1f authored by Henrik Skupin's avatar Henrik Skupin
Browse files

Bug 1830884 - [webdriver-bidi] Added WebDriver BiDi base module for root...

Bug 1830884 - [webdriver-bidi] Added WebDriver BiDi base module for root destination. r=webdriver-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D177494
parent e7c06246
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ remote.jar:

  # WebDriver BiDi modules
  content/webdriver-bidi/modules/ModuleRegistry.sys.mjs (modules/ModuleRegistry.sys.mjs)
  content/webdriver-bidi/modules/RootBiDiModule.sys.mjs (modules/RootBiDiModule.sys.mjs)
  content/webdriver-bidi/modules/WindowGlobalBiDiModule.sys.mjs (modules/WindowGlobalBiDiModule.sys.mjs)

  # WebDriver BiDi root modules
+10 −0
Original line number Diff line number Diff line
/* 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/. */

import { Module } from "chrome://remote/content/shared/messagehandler/Module.sys.mjs";

/**
 * Base class for all Root BiDi MessageHandler modules.
 */
export class RootBiDiModule extends Module {}
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";

import { Module } from "chrome://remote/content/shared/messagehandler/Module.sys.mjs";
import { RootBiDiModule } from "chrome://remote/content/webdriver-bidi/modules/RootBiDiModule.sys.mjs";

const lazy = {};

@@ -63,7 +63,7 @@ const WaitCondition = {
  Complete: "complete",
};

class BrowsingContextModule extends Module {
class BrowsingContextModule extends RootBiDiModule {
  #contextListener;
  #subscribedEvents;

+2 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * 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/. */

import { Module } from "chrome://remote/content/shared/messagehandler/Module.sys.mjs";
import { RootBiDiModule } from "chrome://remote/content/webdriver-bidi/modules/RootBiDiModule.sys.mjs";

const lazy = {};

@@ -14,7 +14,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
    "chrome://remote/content/shared/messagehandler/WindowGlobalMessageHandler.sys.mjs",
});

class InputModule extends Module {
class InputModule extends RootBiDiModule {
  destroy() {}

  async performActions(options = {}) {
+2 −2
Original line number Diff line number Diff line
@@ -2,9 +2,9 @@
 * 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/. */

import { Module } from "chrome://remote/content/shared/messagehandler/Module.sys.mjs";
import { RootBiDiModule } from "chrome://remote/content/webdriver-bidi/modules/RootBiDiModule.sys.mjs";

class LogModule extends Module {
class LogModule extends RootBiDiModule {
  destroy() {}

  static get supportedEvents() {
Loading