summaryrefslogtreecommitdiffstats
path: root/toolkit/components/prompts/content
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/prompts/content
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/prompts/content')
-rw-r--r--toolkit/components/prompts/content/selectDialog.css12
-rw-r--r--toolkit/components/prompts/content/selectDialog.js3
-rw-r--r--toolkit/components/prompts/content/selectDialog.xhtml12
3 files changed, 23 insertions, 4 deletions
diff --git a/toolkit/components/prompts/content/selectDialog.css b/toolkit/components/prompts/content/selectDialog.css
new file mode 100644
index 0000000000..923cb114d2
--- /dev/null
+++ b/toolkit/components/prompts/content/selectDialog.css
@@ -0,0 +1,12 @@
+/* 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/. */
+
+:root {
+ min-width: 29em;
+}
+
+#selectContainer {
+ max-width: 45em;
+ margin: 5px;
+}
diff --git a/toolkit/components/prompts/content/selectDialog.js b/toolkit/components/prompts/content/selectDialog.js
index 86809bc879..30d7de5c69 100644
--- a/toolkit/components/prompts/content/selectDialog.js
+++ b/toolkit/components/prompts/content/selectDialog.js
@@ -30,7 +30,8 @@ function onDCL() {
document.title = propBag.getProperty("title");
let text = propBag.getProperty("text");
- document.getElementById("info.txt").setAttribute("value", text);
+ let element = document.getElementById("info.txt");
+ element.appendChild(document.createTextNode(text));
let items = propBag.getProperty("list");
listBox = document.getElementById("list");
diff --git a/toolkit/components/prompts/content/selectDialog.xhtml b/toolkit/components/prompts/content/selectDialog.xhtml
index 59918cdce0..70d0bbfdfd 100644
--- a/toolkit/components/prompts/content/selectDialog.xhtml
+++ b/toolkit/components/prompts/content/selectDialog.xhtml
@@ -10,13 +10,19 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
>
- <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
+ <linkset>
+ <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
+ <html:link
+ rel="stylesheet"
+ href="chrome://global/content/selectDialog.css"
+ />
+ </linkset>
<dialog>
<script src="chrome://global/content/selectDialog.js" />
<keyset id="dialogKeys" />
- <vbox style="width: 24em; margin: 5px">
- <label id="info.txt" />
+ <vbox id="selectContainer">
+ <description id="info.txt" />
<vbox>
<richlistbox id="list" class="theme-listbox" style="height: 8em" />
</vbox>