Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / mobile / android / actors / GeckoViewPromptChild.sys.mjs
blob7e5574a7c06c210666b1e0068193d540d88f0852
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/. */
5 import { GeckoViewActorChild } from "resource://gre/modules/GeckoViewActorChild.sys.mjs";
7 export class GeckoViewPromptChild extends GeckoViewActorChild {
8   handleEvent(event) {
9     const { type } = event;
10     debug`handleEvent: ${type}`;
12     switch (type) {
13       case "MozOpenDateTimePicker":
14       case "mozshowdropdown":
15       case "mozshowdropdown-sourcetouch":
16       case "click":
17       case "contextmenu":
18       case "DOMPopupBlocked":
19         Services.prompt.wrappedJSObject.handleEvent(event);
20     }
21   }
24 const { debug, warn } = GeckoViewPromptChild.initLogging("GeckoViewPrompt");