2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
10 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 windowtype=
"alert:alert"
12 xmlns:
xhtml=
"http://www.w3.org/1999/xhtml"
16 onload=
"onAlertLoad();"
17 onclick=
"onAlertClick();"
18 onbeforeunload=
"onAlertBeforeUnload();"
23 href=
"chrome://global/content/alerts/alert.css"
25 <xhtml:link rel=
"stylesheet" href=
"chrome://global/skin/alert.css" />
27 <xhtml:link rel=
"localization" href=
"toolkit/global/alert.ftl" />
30 <script src=
"chrome://global/content/alerts/alert.js" />
33 <box id=
"alertTitleBox">
34 <image id=
"alertIcon" />
35 <label id=
"alertTitleLabel" class=
"alertTitle" crop=
"end" />
39 data-l10n-id=
"alert-close"
40 onclick=
"event.stopPropagation();"
41 oncommand=
"onAlertClose();"
52 <image id=
"alertImage" />
55 <vbox id=
"alertTextBox" class=
"alertTextBox">
56 <label id=
"alertTextLabel" class=
"alertText" />
58 <box id=
"alertFooter">
59 <label id=
"alertSourceLabel" class=
"alertSource" />
63 data-l10n-id=
"alert-settings-title"
65 <menupopup position=
"after_end">
66 <menuitem id=
"doNotDisturbMenuItem" oncommand=
"doNotDisturb();" />
69 id=
"disableForOriginMenuItem"
70 oncommand=
"disableForOrigin();"
72 <menuitem id=
"openSettingsMenuItem" oncommand=
"openSettings();" />
80 <!-- This method is called inline because we want to make sure we establish the width
81 and height of the alert before we fire the onload handler. -->
83 /* eslint-disable no-undef */