From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001
From: Daniel Baumann
Date: Wed, 15 May 2024 05:35:49 +0200
Subject: Merging upstream version 126.0.
Signed-off-by: Daniel Baumann
---
toolkit/content/aboutLogging.js | 4 +-
toolkit/content/aboutNetError.mjs | 8 +-
toolkit/content/aboutProfiles.js | 2 +-
toolkit/content/aboutSupport.js | 43 +-
toolkit/content/aboutSupport.xhtml | 32 ++
toolkit/content/aboutTelemetry.js | 6 +-
toolkit/content/aboutUrlClassifier.js | 2 +-
toolkit/content/aboutwebrtc/aboutWebrtc.mjs | 8 +-
toolkit/content/aboutwebrtc/graph.mjs | 8 +-
toolkit/content/contentAreaUtils.js | 10 +-
toolkit/content/customElements.js | 6 +-
toolkit/content/gmp-sources/openh264.json | 77 ++-
toolkit/content/license.html | 12 +-
.../content/tests/browser/browser_about_logging.js | 4 +-
toolkit/content/tests/browser/browser_bug982298.js | 2 +-
.../tests/browser/browser_f7_caret_browsing.js | 2 +-
.../content/tests/browser/browser_isSynthetic.js | 2 +-
.../browser/browser_media_wakelock_webaudio.js | 1 -
.../browser_save_folder_standalone_image.js | 2 +-
.../tests/browser/browser_save_resend_postdata.js | 2 +-
.../content/tests/browser/common/mockTransfer.js | 3 +-
toolkit/content/tests/browser/datetime/head.js | 2 +-
toolkit/content/tests/browser/head.js | 2 +-
.../content/tests/chrome/bug263683_window.xhtml | 2 +-
.../content/tests/chrome/bug366992_window.xhtml | 2 +-
toolkit/content/tests/chrome/chrome.toml | 2 +
.../tests/chrome/file_editor_with_autocomplete.js | 60 +--
toolkit/content/tests/chrome/popup_trigger.js | 100 ++--
toolkit/content/tests/chrome/test_arrowpanel.xhtml | 2 +-
.../content/tests/chrome/test_labelcontrol.xhtml | 2 +-
.../content/tests/chrome/test_menuitem_blink.xhtml | 2 +-
.../tests/chrome/test_menuitem_commands.xhtml | 10 +-
.../tests/chrome/test_menulist_in_popup.xhtml | 2 +-
.../chrome/test_menulist_initial_selection.xhtml | 13 +-
...initial_selection_with_connected_callback.xhtml | 80 +++
.../tests/chrome/test_menulist_null_value.xhtml | 8 +-
.../tests/chrome/test_notificationbox.xhtml | 18 +-
toolkit/content/tests/chrome/test_popup_keys.xhtml | 2 +-
.../tests/chrome/test_popup_moveToAnchor.xhtml | 2 +-
.../content/tests/chrome/test_richlistbox.xhtml | 23 +-
toolkit/content/tests/chrome/test_tree_view.xhtml | 26 +-
.../content/tests/chrome/window_chromemargin.xhtml | 10 +-
.../tests/chrome/window_cursorsnap_dialog.xhtml | 2 +-
toolkit/content/tests/chrome/window_keys.xhtml | 2 +-
.../content/tests/chrome/window_largemenu.xhtml | 8 +-
.../tests/chrome/window_maximized_persist.xhtml | 2 +-
...window_maximized_persist_with_no_titlebar.xhtml | 2 +-
.../tests/chrome/window_popup_anchoratrect.xhtml | 2 +-
toolkit/content/tests/chrome/window_tooltip.xhtml | 55 +-
toolkit/content/tests/widgets/chrome.toml | 4 +-
.../widgets/file_videocontrols_jsdisabled.html | 2 +-
toolkit/content/tests/widgets/head.js | 2 +-
toolkit/content/tests/widgets/mochitest.toml | 9 +-
toolkit/content/tests/widgets/seek_with_sound.ogg | Bin 299507 -> 0 bytes
toolkit/content/tests/widgets/seek_with_sound.webm | Bin 0 -> 287370 bytes
toolkit/content/tests/widgets/test_moz_button.html | 7 +-
toolkit/content/tests/widgets/test_moz_card.html | 65 ++-
.../content/tests/widgets/test_popupreflows.xhtml | 4 +-
.../content/tests/widgets/test_videocontrols.html | 4 +-
.../tests/widgets/test_videocontrols_audio.html | 2 +-
.../test_videocontrols_closed_caption_menu.html | 2 +-
.../tests/widgets/test_videocontrols_error.html | 4 +-
.../tests/widgets/test_videocontrols_focus.html | 2 +-
.../test_videocontrols_iframe_fullscreen.html | 2 +-
.../widgets/test_videocontrols_jsdisabled.html | 2 +-
.../widgets/test_videocontrols_keyhandler.html | 2 +-
.../widgets/test_videocontrols_onclickplay.html | 4 +-
.../test_videocontrols_scrubber_position.html | 2 +-
..._videocontrols_scrubber_position_nopreload.html | 2 +-
.../tests/widgets/test_videocontrols_size.html | 2 +-
.../widgets/test_videocontrols_standalone.html | 2 +-
.../widgets/test_videocontrols_video_noaudio.html | 2 +-
.../tests/widgets/test_videocontrols_vtt.html | 2 +-
toolkit/content/tests/widgets/tree_shared.js | 30 +-
toolkit/content/tests/widgets/video.ogg | Bin 285310 -> 0 bytes
toolkit/content/tests/widgets/video.webm | Bin 0 -> 222879 bytes
.../tests/widgets/videocontrols_direction_test.js | 2 +-
toolkit/content/tests/widgets/window_menubar.xhtml | 8 +-
toolkit/content/widgets/autocomplete-popup.js | 71 ++-
.../content/widgets/autocomplete-richlistitem.js | 152 ++++++
toolkit/content/widgets/button.js | 4 +-
toolkit/content/widgets/infobar.css | 5 +-
toolkit/content/widgets/mach_commands.py | 13 +
toolkit/content/widgets/marquee.css | 22 +-
toolkit/content/widgets/marquee.js | 560 +++++++++------------
toolkit/content/widgets/menu.js | 2 +-
toolkit/content/widgets/menulist.js | 14 +-
toolkit/content/widgets/moz-button/moz-button.css | 3 +
toolkit/content/widgets/moz-button/moz-button.mjs | 5 +
toolkit/content/widgets/moz-card/moz-card.css | 56 ++-
toolkit/content/widgets/moz-card/moz-card.mjs | 20 +-
.../content/widgets/moz-card/moz-card.stories.mjs | 32 +-
.../widgets/moz-message-bar/moz-message-bar.css | 52 +-
.../widgets/moz-message-bar/moz-message-bar.mjs | 16 +-
.../content/widgets/moz-page-nav/README.stories.md | 98 ++++
.../widgets/moz-page-nav/moz-page-nav-button.css | 35 +-
.../content/widgets/moz-page-nav/moz-page-nav.css | 3 +-
toolkit/content/widgets/moz-toggle/moz-toggle.css | 24 +-
toolkit/content/widgets/notificationbox.js | 4 +
toolkit/content/widgets/radio.js | 4 +-
toolkit/content/widgets/richlistbox.js | 24 +-
toolkit/content/widgets/tabbox.js | 4 +-
toolkit/content/widgets/tree.js | 2 +-
toolkit/content/widgets/wizard.js | 4 +-
toolkit/content/xul.css | 4 -
105 files changed, 1262 insertions(+), 819 deletions(-)
create mode 100644 toolkit/content/tests/chrome/test_menulist_initial_selection_with_connected_callback.xhtml
delete mode 100644 toolkit/content/tests/widgets/seek_with_sound.ogg
create mode 100644 toolkit/content/tests/widgets/seek_with_sound.webm
delete mode 100644 toolkit/content/tests/widgets/video.ogg
create mode 100644 toolkit/content/tests/widgets/video.webm
create mode 100644 toolkit/content/widgets/moz-page-nav/README.stories.md
(limited to 'toolkit/content')
diff --git a/toolkit/content/aboutLogging.js b/toolkit/content/aboutLogging.js
index daff10fbec..360ab366e1 100644
--- a/toolkit/content/aboutLogging.js
+++ b/toolkit/content/aboutLogging.js
@@ -234,7 +234,7 @@ function populatePresets() {
$("#log-modules").value = gLoggingPresets[dropdown.value].modules;
setPresetAndDescription(dropdown.value);
// When changing the list switch to custom.
- $("#log-modules").oninput = e => {
+ $("#log-modules").oninput = () => {
dropdown.value = "custom";
};
}
@@ -534,7 +534,7 @@ function updateLogFile(file) {
if (file.exists()) {
openLogFileButton.disabled = false;
- openLogFileButton.onclick = function (e) {
+ openLogFileButton.onclick = function () {
file.reveal();
};
}
diff --git a/toolkit/content/aboutNetError.mjs b/toolkit/content/aboutNetError.mjs
index 554553fd62..1c733d5dbb 100644
--- a/toolkit/content/aboutNetError.mjs
+++ b/toolkit/content/aboutNetError.mjs
@@ -498,7 +498,7 @@ function initPage() {
trrExceptionButton.addEventListener("click", () => {
RPMSendQuery("Browser:AddTRRExcludedDomain", {
hostname: HOST_NAME,
- }).then(msg => {
+ }).then(() => {
retryThis(trrExceptionButton);
});
});
@@ -1061,15 +1061,15 @@ function addCertException() {
() => {
location.reload();
},
- err => {}
+ () => {}
);
}
-function onReturnButtonClick(e) {
+function onReturnButtonClick() {
RPMSendAsyncMessage("Browser:SSLErrorGoBack");
}
-function copyPEMToClipboard(e) {
+function copyPEMToClipboard() {
const errorText = document.getElementById("certificateErrorText");
navigator.clipboard.writeText(errorText.textContent);
}
diff --git a/toolkit/content/aboutProfiles.js b/toolkit/content/aboutProfiles.js
index 15c0419a11..38dc86c31f 100644
--- a/toolkit/content/aboutProfiles.js
+++ b/toolkit/content/aboutProfiles.js
@@ -139,7 +139,7 @@ function display(profileData) {
td.appendChild(button);
- button.addEventListener("click", function (e) {
+ button.addEventListener("click", function () {
value.reveal();
});
}
diff --git a/toolkit/content/aboutSupport.js b/toolkit/content/aboutSupport.js
index f9f35e7e76..6b75776bd6 100644
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -20,7 +20,7 @@ ChromeUtils.defineESModuleGetters(this, {
ProcessType: "resource://gre/modules/ProcessType.sys.mjs",
});
-window.addEventListener("load", function onload(event) {
+window.addEventListener("load", function onload() {
try {
window.removeEventListener("load", onload);
Troubleshoot.snapshot().then(async snapshot => {
@@ -1051,7 +1051,7 @@ var snapshotFormatters = {
}
let button = $("enumerate-database-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
let { KeyValueService } = ChromeUtils.importESModule(
"resource://gre/modules/kvstore.sys.mjs"
);
@@ -1074,7 +1074,7 @@ var snapshotFormatters = {
$("enumerate-database-result").textContent +=
logs.join("\n") + "\n";
})
- .catch(err => {
+ .catch(() => {
$("enumerate-database-result").textContent += `${name}:\n`;
});
}
@@ -1105,7 +1105,7 @@ var snapshotFormatters = {
'th[data-l10n-id="roundtrip-latency"]'
).nextSibling.textContent = latencyString;
})
- .catch(e => {});
+ .catch(() => {});
}
function createCDMInfoRow(cdmInfo) {
@@ -1369,6 +1369,17 @@ var snapshotFormatters = {
$("remote-debugging-url").textContent = data.url;
},
+ contentAnalysis(data) {
+ $("content-analysis-active").textContent = data.active;
+ if (data.active) {
+ $("content-analysis-connected-to-agent").textContent = data.connected;
+ $("content-analysis-agent-path").textContent = data.agentPath;
+ $("content-analysis-agent-failed-signature-verification").textContent =
+ data.failedSignatureVerification;
+ $("content-analysis-request-count").textContent = data.requestCount;
+ }
+ },
+
accessibility(data) {
$("a11y-activated").textContent = data.isActive;
$("a11y-force-disabled").textContent = data.forceDisabled || 0;
@@ -1606,7 +1617,7 @@ function sortedArrayFromObject(obj) {
for (let prop in obj) {
tuples.push([prop, obj[prop]]);
}
- tuples.sort(([prop1, v1], [prop2, v2]) => prop1.localeCompare(prop2));
+ tuples.sort(([prop1], [prop2]) => prop1.localeCompare(prop2));
return tuples;
}
@@ -1757,7 +1768,7 @@ Serializer.prototype = {
}
},
- _startNewLine(lines) {
+ _startNewLine() {
let currLine = this._currentLine;
if (currLine) {
// The current line is not empty. Trim it.
@@ -1770,7 +1781,7 @@ Serializer.prototype = {
this._lines.push("");
},
- _appendText(text, lines) {
+ _appendText(text) {
this._currentLine += text;
},
@@ -1926,13 +1937,13 @@ function safeModeRestart() {
function setupEventListeners() {
let button = $("reset-box-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
ResetProfile.openConfirmationDialog(window);
});
}
button = $("clear-startup-cache-button");
if (button) {
- button.addEventListener("click", async function (event) {
+ button.addEventListener("click", async function () {
const [promptTitle, promptBody, restartButtonLabel] =
await document.l10n.formatValues([
{ id: "startup-cache-dialog-title2" },
@@ -1965,7 +1976,7 @@ function setupEventListeners() {
}
button = $("restart-in-safe-mode-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
if (
Services.obs
.enumerateObservers("restart-in-safe-mode")
@@ -1983,7 +1994,7 @@ function setupEventListeners() {
if (AppConstants.MOZ_UPDATER) {
button = $("update-dir-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
// Get the update directory.
let updateDir = Services.dirsvc.get("UpdRootD", Ci.nsIFile);
if (!updateDir.exists()) {
@@ -2001,7 +2012,7 @@ function setupEventListeners() {
}
button = $("show-update-history-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
window.browsingContext.topChromeWindow.openDialog(
"chrome://mozapps/content/update/history.xhtml",
"Update:History",
@@ -2012,7 +2023,7 @@ function setupEventListeners() {
}
button = $("verify-place-integrity-button");
if (button) {
- button.addEventListener("click", function (event) {
+ button.addEventListener("click", function () {
PlacesDBUtils.checkAndFixDatabase().then(tasksStatusMap => {
let logs = [];
for (let [key, value] of tasksStatusMap) {
@@ -2027,13 +2038,13 @@ function setupEventListeners() {
});
}
- $("copy-raw-data-to-clipboard").addEventListener("click", function (event) {
+ $("copy-raw-data-to-clipboard").addEventListener("click", function () {
copyRawDataToClipboard(this);
});
- $("copy-to-clipboard").addEventListener("click", function (event) {
+ $("copy-to-clipboard").addEventListener("click", function () {
copyContentsToClipboard();
});
- $("profile-dir-button").addEventListener("click", function (event) {
+ $("profile-dir-button").addEventListener("click", function () {
openProfileDirectory();
});
}
diff --git a/toolkit/content/aboutSupport.xhtml b/toolkit/content/aboutSupport.xhtml
index d19fb64d56..f815ab77f4 100644
--- a/toolkit/content/aboutSupport.xhtml
+++ b/toolkit/content/aboutSupport.xhtml
@@ -902,6 +902,38 @@
#endif
+#ifndef ANDROID
+
+
+
+
+
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+
+
+#endif
+
+
TEST
@@ -25,6 +30,12 @@
+
+ heading icon test content
+
+
+