From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- toolkit/components/prompts/content/selectDialog.css | 12 ++++++++++++ toolkit/components/prompts/content/selectDialog.js | 3 ++- toolkit/components/prompts/content/selectDialog.xhtml | 12 +++++++++--- toolkit/components/prompts/jar.mn | 1 + toolkit/components/prompts/test/chromeScript.js | 2 +- 5 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 toolkit/components/prompts/content/selectDialog.css (limited to 'toolkit/components/prompts') 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" > - + + + +