mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 04:39:03 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D55857 --HG-- rename : toolkit/components/alerts/resources/content/alert.xul => toolkit/components/alerts/resources/content/alert.xhtml rename : toolkit/components/apppicker/content/appPicker.xul => toolkit/components/apppicker/content/appPicker.xhtml rename : toolkit/components/extensions/dummy.xul => toolkit/components/extensions/dummy.xhtml rename : toolkit/components/passwordmgr/content/passwordManager.xul => toolkit/components/passwordmgr/content/passwordManager.xhtml rename : toolkit/components/printing/content/printPageSetup.xul => toolkit/components/printing/content/printPageSetup.xhtml rename : toolkit/components/printing/content/printPreviewProgress.xul => toolkit/components/printing/content/printPreviewProgress.xhtml rename : toolkit/components/printing/content/printProgress.xul => toolkit/components/printing/content/printProgress.xhtml rename : toolkit/components/prompts/content/commonDialog.xul => toolkit/components/prompts/content/commonDialog.xhtml rename : toolkit/components/prompts/content/selectDialog.xul => toolkit/components/prompts/content/selectDialog.xhtml rename : toolkit/components/viewconfig/content/config.xul => toolkit/components/viewconfig/content/config.xhtml rename : toolkit/content/editMenuKeys.inc.xul => toolkit/content/editMenuKeys.inc.xhtml rename : toolkit/content/resetProfile.xul => toolkit/content/resetProfile.xhtml rename : toolkit/content/resetProfileProgress.xul => toolkit/content/resetProfileProgress.xhtml rename : toolkit/modules/win.xul => toolkit/modules/win.xhtml rename : toolkit/profile/content/createProfileWizard.xul => toolkit/profile/content/createProfileWizard.xhtml rename : toolkit/profile/content/profileDowngrade.xul => toolkit/profile/content/profileDowngrade.xhtml rename : toolkit/profile/content/profileSelection.xul => toolkit/profile/content/profileSelection.xhtml extra : moz-landing-system : lando
70 lines
2.5 KiB
HTML
70 lines
2.5 KiB
HTML
<?xml version="1.0"?>
|
|
<!-- 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/. -->
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % alertDTD SYSTEM "chrome://alerts/locale/alert.dtd">
|
|
%alertDTD;
|
|
]>
|
|
|
|
<?xml-stylesheet href="chrome://global/content/alerts/alert.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
|
|
|
|
<window id="alertNotification"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
windowtype="alert:alert"
|
|
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
role="alert"
|
|
pack="start"
|
|
onload="onAlertLoad();"
|
|
onclick="onAlertClick();"
|
|
onbeforeunload="onAlertBeforeUnload();">
|
|
|
|
<script src="chrome://global/content/alerts/alert.js"/>
|
|
|
|
<vbox id="alertBox">
|
|
<box id="alertTitleBox">
|
|
<image id="alertIcon"/>
|
|
<label id="alertTitleLabel" class="alertTitle plain" crop="end"/>
|
|
<vbox>
|
|
<toolbarbutton class="close-icon"
|
|
tooltiptext="&closeAlert.tooltip;"
|
|
onclick="event.stopPropagation();"
|
|
oncommand="onAlertClose();"/>
|
|
</vbox>
|
|
</box>
|
|
<box>
|
|
<hbox id="alertImageBox" class="alertImageBox" align="center" pack="center">
|
|
<image id="alertImage"/>
|
|
</hbox>
|
|
|
|
<vbox id="alertTextBox" class="alertTextBox">
|
|
<label id="alertTextLabel" class="alertText plain"/>
|
|
<spacer flex="1"/>
|
|
<box id="alertFooter">
|
|
<label id="alertSourceLabel" class="alertSource plain"/>
|
|
<button type="menu" id="alertSettings" tooltiptext="&settings.label;">
|
|
<menupopup position="after_end">
|
|
<menuitem id="doNotDisturbMenuItem"
|
|
oncommand="doNotDisturb();"/>
|
|
<menuseparator/>
|
|
<menuitem id="disableForOriginMenuItem"
|
|
oncommand="disableForOrigin();"/>
|
|
<menuitem id="openSettingsMenuItem"
|
|
oncommand="openSettings();"/>
|
|
</menupopup>
|
|
</button>
|
|
</box>
|
|
</vbox>
|
|
</box>
|
|
</vbox>
|
|
|
|
<!-- This method is called inline because we want to make sure we establish the width
|
|
and height of the alert before we fire the onload handler. -->
|
|
<script>
|
|
/* eslint-disable no-undef */
|
|
prefillAlertInfo();
|
|
</script>
|
|
</window>
|
|
|