Bug 1703164 - convert mail/components/compose/content/dialogs/EdReplace.xhtml to top level <html>. r=elizabeth

Compose | Edit | Find and Replace...

Differential Revision: https://phabricator.services.mozilla.com/D194558

--HG--
extra : rebase_source : 656ab49b648a57efd379141a403cecfd1137ab5e
extra : amend_source : 4e135a6f446056d05801cc49a00fcb47fe7e273a
This commit is contained in:
Magnus Melin 2023-12-03 12:44:50 +02:00
Родитель 908e0a20d9
Коммит c4c17adfcf
2 изменённых файлов: 136 добавлений и 120 удалений

Просмотреть файл

@ -10,6 +10,10 @@ var gFindInst; // nsIWebBrowserFind that we're going to use
var gFindService; // Global service which remembers find params
var gEditor; // the editor we're using
window.addEventListener("load", event => {
onLoad();
});
document.addEventListener("dialogaccept", event => {
onFindNext();
event.preventDefault();

Просмотреть файл

@ -1,41 +1,52 @@
<?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 SYSTEM "chrome://messenger/locale/messengercompose/EditorReplace.dtd">
<window
id="replaceDlg"
title="&replaceDialog.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
<!DOCTYPE html SYSTEM "chrome://messenger/locale/messengercompose/EditorReplace.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="replaceDlg"
scrolling="false"
persist="screenX screenY"
lightweightthemes="true"
onload="onLoad()"
>
<html:link rel="stylesheet" href="chrome://global/skin/global.css" />
<html:link rel="stylesheet" href="chrome://editor/skin/EditorDialog.css" />
<html:link
<head>
<title>&replaceDialog.title;</title>
<link rel="stylesheet" href="chrome://global/skin/global.css" />
<link rel="stylesheet" href="chrome://editor/skin/EditorDialog.css" />
<link
rel="stylesheet"
href="chrome://messenger/skin/shared/grid-layout.css"
/>
<html:link rel="stylesheet" href="chrome://messenger/skin/variables.css" />
<html:link rel="stylesheet" href="chrome://messenger/skin/colors.css" />
<html:link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<html:link
rel="stylesheet"
href="chrome://messenger/skin/themeableDialog.css"
/>
<link rel="stylesheet" href="chrome://messenger/skin/variables.css" />
<link rel="stylesheet" href="chrome://messenger/skin/colors.css" />
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<link rel="stylesheet" href="chrome://messenger/skin/themeableDialog.css" />
<link rel="localization" href="branding/brand.ftl" />
<script
defer="defer"
src="chrome://messenger/content/dialogShadowDom.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/editorUtilities.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/EdDialogCommon.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/messengercompose/EdReplace.js"
></script>
</head>
<html:body
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<dialog buttons="cancel">
<!-- Methods common to all editor dialogs -->
<script src="chrome://messenger/content/messengercompose/editorUtilities.js" />
<script src="chrome://messenger/content/messengercompose/EdDialogCommon.js" />
<script src="chrome://messenger/content/messengercompose/EdReplace.js" />
<script src="chrome://messenger/content/dialogShadowDom.js" />
<stringbundle
id="findBundle"
src="chrome://global/locale/finddialog.properties"
@ -129,4 +140,5 @@
</vbox>
</hbox>
</dialog>
</window>
</html:body>
</html>