event.sys.mjs (516B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 import { Module } from "chrome://remote/content/shared/messagehandler/Module.sys.mjs"; 6 7 class EventModule extends Module { 8 destroy() {} 9 10 /** 11 * Commands 12 */ 13 14 testEmitRootEvent() { 15 this.emitEvent("event-from-root", { 16 text: "event from root", 17 }); 18 } 19 } 20 21 export const event = EventModule;