/* 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 { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs"; export var TabModalPrompt = class { constructor(win) { this.win = win; let newPrompt = (this.element = win.document.createElement("tabmodalprompt")); win.MozXULElement.insertFTLIfNeeded("toolkit/global/tabprompts.ftl"); newPrompt.setAttribute("role", "dialog"); let randomIdSuffix = Math.random().toString(32).substring(2); newPrompt.setAttribute("aria-describedby", `infoBody-${randomIdSuffix}`); newPrompt.appendChild( win.MozXULElement.parseXULToFragment( `