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 + diff --git a/toolkit/content/aboutTelemetry.js b/toolkit/content/aboutTelemetry.js index b25c2687d9..45a8488820 100644 --- a/toolkit/content/aboutTelemetry.js +++ b/toolkit/content/aboutTelemetry.js @@ -257,7 +257,7 @@ var PingPicker = { "mouseleave", () => (pingPickerNeedHide = true) ); - document.addEventListener("click", ev => { + document.addEventListener("click", () => { if (pingPickerNeedHide) { pingPicker.classList.add("hidden"); } @@ -966,7 +966,7 @@ var RawPayloadData = { attachObservers() { document .getElementById("payload-json-viewer") - .addEventListener("click", e => { + .addEventListener("click", () => { openJsonInFirefoxJsonViewer(JSON.stringify(gPingData.payload, null, 2)); }); }, @@ -1121,7 +1121,7 @@ var Histogram = { return outerDiv; }, - processHistogram(aHgram, aName) { + processHistogram(aHgram) { const values = Object.keys(aHgram.values).map(k => aHgram.values[k]); if (!values.length) { // If we have no values collected for this histogram, just return diff --git a/toolkit/content/aboutUrlClassifier.js b/toolkit/content/aboutUrlClassifier.js index 14b34c7e89..cc88e3bf73 100644 --- a/toolkit/content/aboutUrlClassifier.js +++ b/toolkit/content/aboutUrlClassifier.js @@ -429,7 +429,7 @@ var Cache = { createCacheEntries() { function createRow(tds, body, cols) { let tr = document.createElement("tr"); - tds.forEach(function (v, i, a) { + tds.forEach(function (v, i) { let td = document.createElement("td"); if (i == 0 && tds.length != cols) { td.setAttribute("colspan", cols - tds.length + 1); diff --git a/toolkit/content/aboutwebrtc/aboutWebrtc.mjs b/toolkit/content/aboutwebrtc/aboutWebrtc.mjs index 7e2c92a4bd..5aa8119c5a 100644 --- a/toolkit/content/aboutwebrtc/aboutWebrtc.mjs +++ b/toolkit/content/aboutwebrtc/aboutWebrtc.mjs @@ -53,7 +53,7 @@ class Renderer { // adding elements more readable, e.g. elemRenderer.elem_h4(...) instead of // elemRenderer.elem("h4", ...). const elemRenderer = new Proxy(new Renderer(), { - get(target, prop, receiver) { + get(target, prop) { // Function prefixes to proxy. const proxied = { elem_: (...args) => target.elem(...args), @@ -502,7 +502,7 @@ async function renderPeerConnectionSection() { return body; }, // Creates the filling for the disclosure - updateFn: async section => { + updateFn: async () => { let statsReports = await getStats(needsFullUpdate); needsFullUpdate = REQUEST_UPDATE_ONLY_REFRESH; @@ -1828,7 +1828,7 @@ class PrimarySection { disclosureHideL10nId, autoRefreshPref, renderFn = async () => {}, // Creates the filling for the disclosure - updateFn = async section => {}, // Updates the contents. + updateFn = async () => {}, // Updates the contents. headerElementsFn = async () => [], // Accessory elements for the heading }) { const newSect = new PrimarySection(); @@ -1937,7 +1937,7 @@ async function renderMediaCtx(rndr) { hasH264Hardware.dataset.value = ctx.hasH264Hardware; const renderFn = async () => rndr.elems_div({}, [hasH264Hardware, rndr.elem_hr(), confList.view()]); - const updateFn = async section => { + const updateFn = async () => { const newCtx = WGI.getMediaContext(); if (hasH264Hardware.dataset.value != newCtx.hasH264Hardware) { hasH264Hardware.dataset.value = newCtx.hasH264Hardware; diff --git a/toolkit/content/aboutwebrtc/graph.mjs b/toolkit/content/aboutwebrtc/graph.mjs index f2c93f0709..002b3c9d28 100644 --- a/toolkit/content/aboutwebrtc/graph.mjs +++ b/toolkit/content/aboutwebrtc/graph.mjs @@ -35,14 +35,14 @@ class GraphImpl { // The color to use for average graph lines and text averageLineColor = () => "green"; // The color to use for the max value - maxColor = ({ time, value }) => "grey"; + maxColor = () => "grey"; // The color to use for the min value - minColor = ({ time, value }) => "grey"; + minColor = () => "grey"; // Title color - titleColor = title => compStyle("--in-content-page-color"); + titleColor = () => compStyle("--in-content-page-color"); // The color to use for a data point at a time. // The destination x coordinate and graph width are also provided. - datumColor = ({ time, value, x, width }) => "red"; + datumColor = () => "red"; // Returns an SVG element that needs to be inserted into the DOM for display drawSparseValues = (dataSet, title, config) => { diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js index 983fd9890d..0e7d072e6b 100644 --- a/toolkit/content/contentAreaUtils.js +++ b/toolkit/content/contentAreaUtils.js @@ -1180,10 +1180,10 @@ function openURL(aURL) { var appstartup = Services.startup; var loadListener = { - onStartRequest: function ll_start(aRequest) { + onStartRequest: function ll_start() { appstartup.enterLastWindowClosingSurvivalArea(); }, - onStopRequest: function ll_stop(aRequest, aStatusCode) { + onStopRequest: function ll_stop() { appstartup.exitLastWindowClosingSurvivalArea(); }, QueryInterface: ChromeUtils.generateQI([ @@ -1194,13 +1194,13 @@ function openURL(aURL) { loadgroup.groupObserver = loadListener; var uriListener = { - doContent(ctype, preferred, request, handler) { + doContent() { return false; }, - isPreferred(ctype, desired) { + isPreferred() { return false; }, - canHandleContent(ctype, preferred, desired) { + canHandleContent() { return false; }, loadCookie: null, diff --git a/toolkit/content/customElements.js b/toolkit/content/customElements.js index b0a8f33fe6..ef58963a02 100644 --- a/toolkit/content/customElements.js +++ b/toolkit/content/customElements.js @@ -732,7 +732,7 @@ } get label() { - return this.getAttribute("label"); + return this.getAttribute("label") || ""; } set image(val) { @@ -762,9 +762,7 @@ } get accessKey() { - return this.labelElement - ? this.labelElement.accessKey - : this.getAttribute("accesskey"); + return this.labelElement?.accessKey || this.getAttribute("accesskey"); } }; MozElements.BaseTextMixin = BaseTextMixin; diff --git a/toolkit/content/gmp-sources/openh264.json b/toolkit/content/gmp-sources/openh264.json index 9e6e9b875c..0f857866d7 100644 --- a/toolkit/content/gmp-sources/openh264.json +++ b/toolkit/content/gmp-sources/openh264.json @@ -1,54 +1,47 @@ { + "hashFunction": "sha512", + "name": "OpenH264-2.3.2", + "schema_version": 1000, "vendors": { "gmp-gmpopenh264": { "platforms": { - "Android_aarch64-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-android-aarch64-42954cf0fe8a2bdc97fdc180462a3eaefceb035f.zip", - "filesize": 557884, - "hashValue": "307d188876f3612a9168c0b4ed191db2132f2e3193bdd3024ce50adcb9c1e085ab43008531a25e93d570a377283336cda9bcd7609ee6b702c5292f12d20b616b" - }, - "Android_arm-eabi-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-android-arm-42954cf0fe8a2bdc97fdc180462a3eaefceb035f.zip", - "filesize": 539311, - "hashValue": "f4f0bfe333b7e0cd0453e787dc3c15bebe9cc771cb3e57540d53f0ac9a37eee4ea8559a45a51824ee4d706ee0b3d80b2d331468a0aa533cd958081f23ee0aaae" - }, - "Android_x86-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-android-x86-42954cf0fe8a2bdc97fdc180462a3eaefceb035f.zip", - "filesize": 589947, - "hashValue": "eb7a1c9c2d29a2fd12dfe82d0f575f1d855478640816a7fb9402ce82c65878ffc5aa3d5f8bb46cd01231005c37d86984d7a631cfe45c7d56a6d4dabc427b15a0" - }, "Darwin_aarch64-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-macosx64-aarch64-2e1774ab6dc6c43debb0b5b628bdf122a391d521-2.zip", - "filesize": 395414, - "hashValue": "d0905cd3c23541f67f9ff29ce392afdb7a5dd111906e1b5fa8fad4743b227acd7bd83d50e13ed029118a764983cf9e0a24c5321ecb9e5b88740dfbefcf34864c" + "fileUrl": "http://ciscobinary.openh264.org/openh264-macosx64-aarch64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 477938, + "hashValue": "391efb184373d533713a9e99a9e63c3bbaf614e8d8bdfdd84d4d5e53b9a737e75032187309dd00e58b58bb1033ab68d199f994744f6add57dd08f5fbb654d2f3" }, "Darwin_x86_64-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-macosx64-2e1774ab6dc6c43debb0b5b628bdf122a391d521-2.zip", - "filesize": 488639, - "hashValue": "d847b153f8ef2b4b095fbaf9f64b6d08658720ca1e4dc7288622c56d00858d038fe0fd07bc1efb0afc8f02dbd07818416ecc2555db8ed1199872b0d165f4eb62" + "fileUrl": "http://ciscobinary.openh264.org/openh264-macosx64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 552074, + "hashValue": "c649bfa20c48406ccbae1917d7478773cd5250ef995828b58cc56cc4db0a3c7ce3f89eb187bd1b3d26cda0e5e65322b710cfd66a2953adeea0e4361c51488add" + }, + "Linux_aarch64-gcc3": { + "fileUrl": "http://ciscobinary.openh264.org/openh264-linux64-aarch64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 537296, + "hashValue": "eab3fca253c10739c4930bdaf83ca7a9a0a3580937e0e945dde3a45bcdb39b6240ae0d7133ebfb10029442322f4ce6e8647917d15afea601351dc8a5f0dbf3ec" }, "Linux_x86-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-linux32-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip", - "filesize": 527704, - "hashValue": "903aecd631624db3047fc477363ac076794517bbc72b33a88a73627066b5997d9c1194975729ef2acbabba19e93574333b54e32763a5a834b8d9431b99181fd1" + "fileUrl": "http://ciscobinary.openh264.org/openh264-linux32-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 623151, + "hashValue": "d80508260c6419acc09c9fde539b18e9231899786df549bc8c86e564d1fb8c500327adb96bba204a386326dd5213ae907108c9ca4fc64ae385fbb2291e0e8cc5" }, "Linux_x86_64-gcc3": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-linux64-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip", - "filesize": 511815, - "hashValue": "94531e267314de661b2205c606283fb066d781e5c11027578f2a3c3aa353437c2289544074a28101b6b6f0179f0fe6bd890a0ae2bb6e1cf9053650472576366c" + "fileUrl": "http://ciscobinary.openh264.org/openh264-linux64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 583674, + "hashValue": "53a58bfb4c8124ad4f7655b99bfdea290033a085e0796b19245b33b91c0948fdac9f0c3e817130b352493a65d9a7a0fc8a7c1eedc618cdaa2b4580734a11cd9c" }, "Linux_x86_64-gcc3-asan": { "alias": "Linux_x86_64-gcc3" }, "WINNT_aarch64-msvc-aarch64": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-win64-aarch64-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip", - "filesize": 558607, - "hashValue": "8d936bca08dcf3538c5c118c0f468d672c556ac2ac828a4b9d1fcbb4339885d17ebcc748a918457abbea87d21c5cab2c007ca5b4ef87f04a52d44f42ee5fdbb9" + "fileUrl": "http://ciscobinary.openh264.org/openh264-win64-aarch64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 412806, + "hashValue": "cc3306873d6ad8ea6a27096c8ce75831463633a530d8f1794ae3eba3efd4a572459b6b0f3ac73f46552a7d6c7a29b152e299d862a2f76420eee07d1d39979182" }, "WINNT_x86-msvc": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-win32-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip", - "filesize": 491261, - "hashValue": "9ed5b4c27c2c159b83a1b887a1215d0472171cff422d2bc1962312f90e62d1b212955fe68bc88f826d613c9fb58b86f6fa16ebc1533e863f6a5648dcb1319bcb" + "fileUrl": "http://ciscobinary.openh264.org/openh264-win32-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 472465, + "hashValue": "b5c8290bbee9503b6f9d2fcc3cbcf94f9b2d4e8ee143e37cfc8c68de593c8189aecfe447b811accecdb564c8788bd05e116f4eda62ac29b3c6b8a6fa5f564ee0" }, "WINNT_x86-msvc-x64": { "alias": "WINNT_x86-msvc" @@ -57,26 +50,18 @@ "alias": "WINNT_x86-msvc" }, "WINNT_x86_64-msvc": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-win64-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip", - "filesize": 453023, - "hashValue": "06511f1f6c6d44d076b3c593528c26a602348d9c41689dbf5ff716b671c3ca5756b12cb2e5869f836dedce27b1a5cfe79b93c707fd01f8e84b620923bb61b5f1" + "fileUrl": "http://ciscobinary.openh264.org/openh264-win64-31c4d2e4a037526fd30d4e5c39f60885986cf865.zip", + "filesize": 491284, + "hashValue": "b667086ed49579592d435df2b486fe30ba1b62ddd169f19e700cd079239747dd3e20058c285fa9c10a533e34f22b5198ed9b1f92ae560a3067f3e3feacc724f1" }, "WINNT_x86_64-msvc-x64": { "alias": "WINNT_x86_64-msvc" }, "WINNT_x86_64-msvc-x64-asan": { "alias": "WINNT_x86_64-msvc" - }, - "android-x86_64": { - "fileUrl": "http://ciscobinary.openh264.org/openh264-android-x86_64-42954cf0fe8a2bdc97fdc180462a3eaefceb035f.zip", - "filesize": 539311, - "hashValue": "2c80df83c84841477cf5489e4109a0913cf3ca801063d788e100a511c9226d46059e4d28ea76496c3208c046cc44c5ce0b5263b1bfda5b731f8461ce8ce7d1b7" } }, - "version": "1.8.1.2" + "version": "2.3.2" } - }, - "hashFunction": "sha512", - "name": "OpenH264-1.8.1.2", - "schema_version": 1000 + } } diff --git a/toolkit/content/license.html b/toolkit/content/license.html index e9d2642354..fe489f74d1 100644 --- a/toolkit/content/license.html +++ b/toolkit/content/license.html @@ -1682,7 +1682,15 @@ licences.

Apple License

-

This license applies to certain files in the directories dom/media/webaudio/blink, and widget/cocoa.

+

This license applies to parts of the code in:

+ +

and also some files in these directories:

+
 Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
@@ -1897,6 +1905,7 @@ into source code and to files in the following directories:
     
  • third_party/jpeg-xl/
  • #endif
  • third_party/xsimd/
  • +
  • third_party/zstd/
  • See the individual LICENSE files for copyright owners.

    @@ -5147,7 +5156,6 @@ ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation a
    • security/nss/lib/dbm
    • -
    • xpcom/ds/nsQuickSort.cpp
    • nsprpub/pr/src/misc/praton.c
    • dom/media/webrtc/transport/third_party/nICEr/src/stun/addrs.c
    diff --git a/toolkit/content/tests/browser/browser_about_logging.js b/toolkit/content/tests/browser/browser_about_logging.js index fdf8eab57b..d9a2459c12 100644 --- a/toolkit/content/tests/browser/browser_about_logging.js +++ b/toolkit/content/tests/browser/browser_about_logging.js @@ -201,7 +201,7 @@ add_task(async function testURLParameters() { url: PAGE + "?invalid-param", }, async browser => { - await SpecialPowers.spawn(browser, [profilerPresetInURL], async inURL => { + await SpecialPowers.spawn(browser, [profilerPresetInURL], async () => { let $ = content.document.querySelector.bind(content.document); Assert.ok( !$("#error").hidden, @@ -368,7 +368,7 @@ add_task(async function testProfilerOpens() { "https://example.com/", false ); - SpecialPowers.spawn(browser, [], async savedLogModules => { + SpecialPowers.spawn(browser, [], async () => { let $ = content.document.querySelector.bind(content.document); // Override the URL the profiler uses to avoid hitting external // resources (and crash). diff --git a/toolkit/content/tests/browser/browser_bug982298.js b/toolkit/content/tests/browser/browser_bug982298.js index ffbc916a5e..9b6f636db3 100644 --- a/toolkit/content/tests/browser/browser_bug982298.js +++ b/toolkit/content/tests/browser/browser_bug982298.js @@ -50,7 +50,7 @@ add_task(async function () { let awaitFindResult2 = new Promise(resolve => { let listener = { - onFindResult(aData) { + onFindResult() { info("got find result #2"); browser.finder.removeResultListener(listener); resolve(); diff --git a/toolkit/content/tests/browser/browser_f7_caret_browsing.js b/toolkit/content/tests/browser/browser_f7_caret_browsing.js index be6ae7d1f7..c0413c459b 100644 --- a/toolkit/content/tests/browser/browser_f7_caret_browsing.js +++ b/toolkit/content/tests/browser/browser_f7_caret_browsing.js @@ -37,7 +37,7 @@ registerCleanupFunction(function () { let gCaretPromptOpeningObserver; function promiseCaretPromptOpened() { return new Promise(resolve => { - function observer(subject, topic, data) { + function observer(subject) { info("Dialog opened."); resolve(subject); gCaretPromptOpeningObserver(); diff --git a/toolkit/content/tests/browser/browser_isSynthetic.js b/toolkit/content/tests/browser/browser_isSynthetic.js index 21b22fe171..3473dfc915 100644 --- a/toolkit/content/tests/browser/browser_isSynthetic.js +++ b/toolkit/content/tests/browser/browser_isSynthetic.js @@ -11,7 +11,7 @@ LocationChangeListener.prototype = { this.browser.removeProgressListener(this); }, - onLocationChange(webProgress, request, location, flags) { + onLocationChange() { this.wasSynthetic = this.browser.isSyntheticDocument; }, diff --git a/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js b/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js index 7c40b5fe1a..9e18cc89f3 100644 --- a/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js +++ b/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js @@ -56,7 +56,6 @@ async function checkWakelockWhenChangeTabVisibility({ description, additionalParams, needLock, - elementIdForEnteringPIPMode, }) { const originalTab = gBrowser.selectedTab; info(`start a new tab for '${description}'`); diff --git a/toolkit/content/tests/browser/browser_save_folder_standalone_image.js b/toolkit/content/tests/browser/browser_save_folder_standalone_image.js index 073e71a88b..6bcc95ae65 100644 --- a/toolkit/content/tests/browser/browser_save_folder_standalone_image.js +++ b/toolkit/content/tests/browser/browser_save_folder_standalone_image.js @@ -49,7 +49,7 @@ add_task(async function () { const IMAGE_URL = "http://mochi.test:8888/browser/toolkit/content/tests/browser/doggy.png"; - await BrowserTestUtils.withNewTab(IMAGE_URL, async function (browser) { + await BrowserTestUtils.withNewTab(IMAGE_URL, async function () { let tmpDir = FileUtils.getDir("TmpD", []); let dir = newDirectory(); let downloadLastDir = new DownloadLastDir(null); diff --git a/toolkit/content/tests/browser/browser_save_resend_postdata.js b/toolkit/content/tests/browser/browser_save_resend_postdata.js index 3f3e729dab..b028cac4ae 100644 --- a/toolkit/content/tests/browser/browser_save_resend_postdata.js +++ b/toolkit/content/tests/browser/browser_save_resend_postdata.js @@ -59,7 +59,7 @@ function test() { var file = destDir.clone(); file.append("no_default_file_name"); MockFilePicker.setFiles([file]); - MockFilePicker.showCallback = function (fp) { + MockFilePicker.showCallback = function () { MockFilePicker.filterIndex = 1; // kSaveAsType_URL }; diff --git a/toolkit/content/tests/browser/common/mockTransfer.js b/toolkit/content/tests/browser/common/mockTransfer.js index f4afa44903..0240d9c14b 100644 --- a/toolkit/content/tests/browser/common/mockTransfer.js +++ b/toolkit/content/tests/browser/common/mockTransfer.js @@ -51,8 +51,7 @@ MockTransfer.prototype = { onStatusChange: function MTFC_onStatusChange( aWebProgress, aRequest, - aStatus, - aMessage + aStatus ) { // If at least one notification reported an error, the download failed. if (!Components.isSuccessCode(aStatus)) { diff --git a/toolkit/content/tests/browser/datetime/head.js b/toolkit/content/tests/browser/datetime/head.js index 46e2c78af5..532f7743b2 100644 --- a/toolkit/content/tests/browser/datetime/head.js +++ b/toolkit/content/tests/browser/datetime/head.js @@ -69,7 +69,7 @@ class DateTimeTestHelper { [selector], async selector => { let input = content.document.querySelector(selector); - await ContentTaskUtils.waitForEvent(input, "change", false, e => { + await ContentTaskUtils.waitForEvent(input, "change", false, () => { ok( content.window.windowUtils.isHandlingUserInput, "isHandlingUserInput should be true" diff --git a/toolkit/content/tests/browser/head.js b/toolkit/content/tests/browser/head.js index be15cd9684..03a239463d 100644 --- a/toolkit/content/tests/browser/head.js +++ b/toolkit/content/tests/browser/head.js @@ -177,7 +177,7 @@ function leave_icon(icon) { * Used to listen events if you just need it once */ function once(target, name) { - var p = new Promise(function (resolve, reject) { + var p = new Promise(function (resolve) { target.addEventListener( name, function () { diff --git a/toolkit/content/tests/chrome/bug263683_window.xhtml b/toolkit/content/tests/chrome/bug263683_window.xhtml index b124361fd7..74846e3c27 100644 --- a/toolkit/content/tests/chrome/bug263683_window.xhtml +++ b/toolkit/content/tests/chrome/bug263683_window.xhtml @@ -176,7 +176,7 @@ const matches = JSON.parse(gFindBar._foundMatches.dataset.l10nArgs); is(matches.total, 2, "Found correct amount of matches") - await SpecialPowers.spawn(gBrowser, [], async function(args) { + await SpecialPowers.spawn(gBrowser, [], async function() { function getSelection(docShell) { let controller = docShell.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsISelectionDisplay) diff --git a/toolkit/content/tests/chrome/bug366992_window.xhtml b/toolkit/content/tests/chrome/bug366992_window.xhtml index 698d26b43a..ee595706f5 100644 --- a/toolkit/content/tests/chrome/bug366992_window.xhtml +++ b/toolkit/content/tests/chrome/bug366992_window.xhtml @@ -46,7 +46,7 @@ isCommandEnabled(aCommand) { return aCommand == "cmd_delete"; }, - doCommand(aCommand) { } + doCommand() { } } function ok(condition, message) { diff --git a/toolkit/content/tests/chrome/chrome.toml b/toolkit/content/tests/chrome/chrome.toml index 3391a2923d..986822ac48 100644 --- a/toolkit/content/tests/chrome/chrome.toml +++ b/toolkit/content/tests/chrome/chrome.toml @@ -226,6 +226,8 @@ support-files = [ ["test_menulist_initial_selection.xhtml"] +["test_menulist_initial_selection_with_connected_callback.xhtml"] + ["test_menulist_keynav.xhtml"] ["test_menulist_null_value.xhtml"] diff --git a/toolkit/content/tests/chrome/file_editor_with_autocomplete.js b/toolkit/content/tests/chrome/file_editor_with_autocomplete.js index 78611efc70..acf2c9e9df 100644 --- a/toolkit/content/tests/chrome/file_editor_with_autocomplete.js +++ b/toolkit/content/tests/chrome/file_editor_with_autocomplete.js @@ -195,7 +195,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: type 'Mo'", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("M", { shiftKey: true }, aWindow); synthesizeKey("o", {}, aWindow); return true; @@ -212,7 +212,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: select 'Mozilla' to complete the word", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("KEY_ArrowDown", {}, aWindow); synthesizeKey("KEY_Enter", {}, aWindow); return true; @@ -226,7 +226,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: undo the word, but typed text shouldn't be canceled", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -239,7 +239,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: undo the typed text", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -252,7 +252,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: redo the typed text", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -265,7 +265,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: redo the word", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -278,7 +278,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case: removing all text for next test...", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("a", { accelKey: true }, aWindow); synthesizeKey("KEY_Backspace", {}, aWindow); return true; @@ -293,7 +293,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: type 'mo'", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("m", {}, aWindow); synthesizeKey("o", {}, aWindow); return true; @@ -310,7 +310,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: select 'Mozilla' to complete the word", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("KEY_ArrowDown", {}, aWindow); synthesizeKey("KEY_Enter", {}, aWindow); return true; @@ -324,7 +324,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: undo the word, but typed text shouldn't be canceled", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -337,7 +337,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: undo the typed text", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -350,7 +350,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: redo the typed text", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -363,7 +363,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: redo the word", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -376,7 +376,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case: removing all text for next test...", completeDefaultIndex: false, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("a", { accelKey: true }, aWindow); synthesizeKey("KEY_Backspace", {}, aWindow); return true; @@ -392,7 +392,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): type 'Mo'", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("M", { shiftKey: true }, aWindow); synthesizeKey("o", {}, aWindow); return true; @@ -410,7 +410,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): select 'Mozilla' to complete the word", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("KEY_ArrowDown", {}, aWindow); synthesizeKey("KEY_Enter", {}, aWindow); return true; @@ -424,7 +424,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): undo the word, but typed text shouldn't be canceled", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -437,7 +437,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): undo the typed text", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -450,7 +450,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): redo the typed text", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -466,7 +466,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): redo the word", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -479,7 +479,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): removing all text for next test...", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("a", { accelKey: true }, aWindow); synthesizeKey("KEY_Backspace", {}, aWindow); return true; @@ -494,7 +494,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): type 'mo'", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("m", {}, aWindow); synthesizeKey("o", {}, aWindow); return true; @@ -512,7 +512,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): select 'Mozilla' to complete the word", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("KEY_ArrowDown", {}, aWindow); synthesizeKey("KEY_Enter", {}, aWindow); return true; @@ -528,7 +528,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the selected word, but typed text shouldn't be canceled", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -541,7 +541,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the word, but typed text shouldn't be canceled", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -554,7 +554,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the typed text", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("z", { accelKey: true }, aWindow); return true; }, @@ -571,7 +571,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the typed text", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -587,7 +587,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the default index word", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -600,7 +600,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the word", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow); return true; }, @@ -613,7 +613,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = { description: "Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): removing all text for next test...", completeDefaultIndex: true, - execute(aWindow, aTarget) { + execute(aWindow) { synthesizeKey("a", { accelKey: true }, aWindow); synthesizeKey("KEY_Backspace", {}, aWindow); return true; diff --git a/toolkit/content/tests/chrome/popup_trigger.js b/toolkit/content/tests/chrome/popup_trigger.js index 003af044e5..71846a01ea 100644 --- a/toolkit/content/tests/chrome/popup_trigger.js +++ b/toolkit/content/tests/chrome/popup_trigger.js @@ -238,7 +238,7 @@ var popupTests = [ // rollup this way. // synthesizeMouse(gTrigger, 0, -12, { }); }, - result(testname, step) { + result(testname) { is(gMenuPopup.anchorNode, null, testname + " anchorNode"); is(gMenuPopup.triggerNode, null, testname + " triggerNode"); checkClosed("trigger", testname); @@ -532,7 +532,7 @@ var popupTests = [ // event to openPopup to check the trigger node. testname: "open popup anchored with override", events: ["popupshowing thepopup 0010", "popupshown thepopup"], - test(testname, step) { + test() { // attribute overrides the position passed in gMenuPopup.setAttribute("position", "end_after"); gExpectedTriggerNode = gCachedEvent.target; @@ -546,7 +546,7 @@ var popupTests = [ gCachedEvent ); }, - result(testname, step) { + result(testname) { gExpectedTriggerNode = null; is(gMenuPopup.anchorNode, gTrigger, testname + " anchorNode"); is( @@ -564,7 +564,7 @@ var popupTests = [ "popuphidden thepopup", "DOMMenuInactive thepopup", ], - test(testname, step) { + test(testname) { synthesizeKey("KEY_Escape"); checkClosed("trigger", testname); }, @@ -574,12 +574,12 @@ var popupTests = [ testname: "open popup anchored with offsets", events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { // attribute is empty so does not override gMenuPopup.setAttribute("position", ""); gMenuPopup.openPopup(gTrigger, "before_start", 5, 10, true, true); }, - result(testname, step) { + result(testname) { compareEdge(gTrigger, gMenuPopup, "before_start", 5, 10, testname); }, }, @@ -588,10 +588,10 @@ var popupTests = [ // to the viewport. testname: "open popup unanchored", events: ["popupshowing thepopup", "popupshown thepopup"], - test(testname, step) { + test() { gMenuPopup.openPopup(null, "after_start", 6, 8, false); }, - result(testname, step) { + result(testname) { var rect = gMenuPopup.getBoundingClientRect(); ok( rect.left == 6 && rect.top == 8 && rect.right && rect.bottom, @@ -607,11 +607,11 @@ var popupTests = [ "popuphiding thepopup", "popuphidden thepopup", ], - test(testname, step) { + test() { var item3 = document.getElementById("item3"); synthesizeMouse(item3, 4, 4, {}); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); }, }, @@ -625,18 +625,18 @@ var popupTests = [ "popuphidden thepopup", "DOMMenuInactive thepopup", ], - test(testname, step) { + test() { gMenuPopup.hidePopup(); }, }, { testname: "open popup at screen", events: ["popupshowing thepopup", "popupshown thepopup"], - test(testname, step) { + test() { gExpectedTriggerNode = "notset"; gMenuPopup.openPopupAtScreen(gScreenX + 24, gScreenY + 20, false); }, - result(testname, step) { + result(testname) { gExpectedTriggerNode = null; is(gMenuPopup.anchorNode, null, testname + " anchorNode"); is(gMenuPopup.triggerNode, null, testname + " triggerNode"); @@ -670,7 +670,7 @@ var popupTests = [ { testname: "open context popup at screen", events: ["popupshowing thepopup 0010", "popupshown thepopup"], - test(testname, step) { + test() { gExpectedTriggerNode = gCachedEvent.target; gMenuPopup.openPopupAtScreen( gScreenX + 8, @@ -679,7 +679,7 @@ var popupTests = [ gCachedEvent ); }, - result(testname, step) { + result(testname) { gExpectedTriggerNode = null; is(gMenuPopup.anchorNode, null, testname + " anchorNode"); is( @@ -873,7 +873,7 @@ var popupTests = [ testname: "open context popup at screen with all modifiers set", events: ["popupshowing thepopup 1111", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gMenuPopup.openPopupAtScreen( gScreenX + 8, gScreenY + 16, @@ -885,10 +885,10 @@ var popupTests = [ { testname: "open popup with open property", events: ["popupshowing thepopup", "popupshown thepopup"], - test(testname, step) { + test() { openMenu(gTrigger); }, - result(testname, step) { + result(testname) { checkOpen("trigger", testname); if (gIsMenu) { compareEdge(gTrigger, gMenuPopup, "after_start", 0, 0, testname); @@ -902,10 +902,10 @@ var popupTests = [ "DOMMenuItemActive submenu", "popupshown submenupopup", ], - test(testname, step) { + test() { openMenu(document.getElementById("submenu")); }, - result(testname, step) { + result(testname) { checkOpen("trigger", testname); checkOpen("submenu", testname); // XXXndeakin @@ -929,17 +929,17 @@ var popupTests = [ test() { gMenuPopup.hidePopup(); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); checkClosed("submenu", testname); }, }, { testname: "open submenu with open property without parent open", - test(testname, step) { + test() { openMenu(document.getElementById("submenu")); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); checkClosed("submenu", testname); }, @@ -950,11 +950,11 @@ var popupTests = [ return gIsMenu; }, events: ["popupshowing thepopup", "popupshown thepopup"], - test(testname, step) { + test() { gMenuPopup.setAttribute("position", "before_start"); openMenu(gTrigger); }, - result(testname, step) { + result(testname) { compareEdge(gTrigger, gMenuPopup, "before_start", 0, 0, testname); }, }, @@ -968,10 +968,10 @@ var popupTests = [ "popuphidden thepopup", "DOMMenuInactive thepopup", ], - test(testname, step) { + test() { closeMenu(gTrigger, gMenuPopup); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); }, }, @@ -982,13 +982,13 @@ var popupTests = [ }, events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gMenuPopup.setAttribute("position", "start_after"); gMenuPopup.setAttribute("popupanchor", "topright"); gMenuPopup.setAttribute("popupalign", "bottomright"); openMenu(gTrigger); }, - result(testname, step) { + result(testname) { compareEdge(gTrigger, gMenuPopup, "start_after", 0, 0, testname); }, }, @@ -999,13 +999,13 @@ var popupTests = [ }, events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gMenuPopup.removeAttribute("position"); gMenuPopup.setAttribute("popupanchor", "bottomright"); gMenuPopup.setAttribute("popupalign", "topright"); openMenu(gTrigger); }, - result(testname, step) { + result(testname) { compareEdge(gTrigger, gMenuPopup, "after_end", 0, 0, testname); gMenuPopup.removeAttribute("popupanchor"); gMenuPopup.removeAttribute("popupalign"); @@ -1018,11 +1018,11 @@ var popupTests = [ }, events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gTrigger.focus(); synthesizeKey("KEY_ArrowDown", { altKey: !platformIsMac() }); }, - result(testname, step) { + result(testname) { checkOpen("trigger", testname); checkActive(gMenuPopup, "", testname); }, @@ -1033,11 +1033,11 @@ var popupTests = [ return gIsMenu; }, events: ["popupshowing thepopup", "popupshown thepopup"], - test(testname, step) { + test() { gTrigger.focus(); synthesizeKey("KEY_ArrowUp", { altKey: !platformIsMac() }); }, - result(testname, step) { + result(testname) { checkOpen("trigger", testname); checkActive(gMenuPopup, "", testname); }, @@ -1055,11 +1055,11 @@ var popupTests = [ "popuphiding thepopup", "popuphidden thepopup", ], - test(testname, step) { + test() { synthesizeKey("KEY_ArrowDown"); synthesizeKey("KEY_Enter"); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); }, }, @@ -1070,11 +1070,11 @@ var popupTests = [ }, events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gTrigger.focus(); synthesizeKey(platformIsMac() ? " " : "KEY_F4"); }, - result(testname, step) { + result(testname) { checkOpen("trigger", testname); checkActive(gMenuPopup, "", testname); }, @@ -1085,7 +1085,7 @@ var popupTests = [ condition() { return gIsMenu; }, - test(testname, step) { + test() { gTrigger.focus(); if (platformIsMac()) { synthesizeKey("KEY_F4", { altKey: true }); @@ -1093,7 +1093,7 @@ var popupTests = [ synthesizeKey("", { metaKey: true }); } }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); }, }, @@ -1102,11 +1102,11 @@ var popupTests = [ condition() { return gIsMenu; }, - test(testname, step) { + test() { gTrigger.setAttribute("disabled", "true"); synthesizeMouse(gTrigger, 4, 4, {}); }, - result(testname, step) { + result(testname) { checkClosed("trigger", testname); gTrigger.removeAttribute("disabled"); }, @@ -1116,11 +1116,11 @@ var popupTests = [ testname: "openPopup with object argument", events: ["popupshowing thepopup 0000", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test(testname) { gMenuPopup.openPopup(gTrigger, { position: "before_start", x: 5, y: 7 }); checkOpen("trigger", testname); }, - result(testname, step) { + result(testname) { var triggerrect = gTrigger.getBoundingClientRect(); var popuprect = gMenuPopup.getBoundingClientRect(); is( @@ -1139,7 +1139,7 @@ var popupTests = [ testname: "openPopup with object argument with event", events: ["popupshowing thepopup 1000", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test(testname) { gMenuPopup.openPopup(gTrigger, { position: "after_start", x: 0, @@ -1153,10 +1153,10 @@ var popupTests = [ testname: "openPopup with no arguments", events: ["popupshowing thepopup", "popupshown thepopup"], autohide: "thepopup", - test(testname, step) { + test() { gMenuPopup.openPopup(); }, - result(testname, step) { + result(testname) { let isMenu = gTrigger.type == "menu"; // With no arguments, open in default menu position var triggerrect = gTrigger.getBoundingClientRect(); @@ -1184,7 +1184,7 @@ var popupTests = [ "DOMMenuItemActive submenu", "popupshown submenupopup", ], - test(testname, step) { + test(testname) { gMenuPopup.openPopup(gTrigger, "after_start", 0, 0, false, true); document .getElementById("submenupopup") @@ -1196,7 +1196,7 @@ var popupTests = [ { // remove the content nodes for the popup testname: "remove content", - test(testname, step) { + test() { var submenupopup = document.getElementById("submenupopup"); submenupopup.remove(); var popup = document.getElementById("thepopup"); diff --git a/toolkit/content/tests/chrome/test_arrowpanel.xhtml b/toolkit/content/tests/chrome/test_arrowpanel.xhtml index cd8d312e1d..f9f8a0eaf5 100644 --- a/toolkit/content/tests/chrome/test_arrowpanel.xhtml +++ b/toolkit/content/tests/chrome/test_arrowpanel.xhtml @@ -201,7 +201,7 @@ function* nextTest() // Test that a transition occurs when opening or closing the popup. if (matchMedia("(-moz-panel-animations").matches) { - function transitionEnded(event) { + function transitionEnded() { if ($("animatepanel").state != "open") { is($("animatepanel").state, "showing", "state is showing during transitionend"); ok(!animatedPopupShown, "popupshown not fired yet") diff --git a/toolkit/content/tests/chrome/test_labelcontrol.xhtml b/toolkit/content/tests/chrome/test_labelcontrol.xhtml index 06e7f96105..937d3e7403 100644 --- a/toolkit/content/tests/chrome/test_labelcontrol.xhtml +++ b/toolkit/content/tests/chrome/test_labelcontrol.xhtml @@ -40,7 +40,7 @@ function runTests() let checkboxLabel = $("checkbox-label"); is(checkboxLabel.control, "checkbox", "checkbox control"); is(checkboxLabel.labeledControlElement, checkbox, "checkbox labeledControlElement"); - is(checkbox.accessKey, "", "checkbox accessKey not set"); + is(checkbox.accessKey, null, "checkbox accessKey not set"); checkboxLabel.accessKey = "C"; is(checkbox.accessKey, "C", "checkbox accessKey set"); diff --git a/toolkit/content/tests/chrome/test_menuitem_blink.xhtml b/toolkit/content/tests/chrome/test_menuitem_blink.xhtml index 700a8a7465..ad76eee8bf 100644 --- a/toolkit/content/tests/chrome/test_menuitem_blink.xhtml +++ b/toolkit/content/tests/chrome/test_menuitem_blink.xhtml @@ -32,7 +32,7 @@ function test_crash() { var menupopup = document.getElementById("menupopup"); var menuitem = document.getElementById("menuitem"); menupopup.addEventListener("popupshown", function () { - menuitem.addEventListener("mouseup", function (e) { + menuitem.addEventListener("mouseup", function () { const observer = new MutationObserver((aMutationList, aObserver) => { for (const mutation of aMutationList) { if (mutation.attributeName != "_moz-menuactive") { diff --git a/toolkit/content/tests/chrome/test_menuitem_commands.xhtml b/toolkit/content/tests/chrome/test_menuitem_commands.xhtml index 60a35b36c5..a342b9d1d5 100644 --- a/toolkit/content/tests/chrome/test_menuitem_commands.xhtml +++ b/toolkit/content/tests/chrome/test_menuitem_commands.xhtml @@ -49,10 +49,10 @@ function runTestSet(suffix) var three = $("three" + suffix); var four = $("four" + suffix); - checkAttributes(one, "One", "", "", true, false); - checkAttributes(two, "", "", "false", false, false); + checkAttributes(one, "One", null, null, true, false); + checkAttributes(two, null, null, "false", false, false); checkAttributes(three, "Three", "T", "true", false, false); - checkAttributes(four, "Four", "F", "", false, false); + checkAttributes(four, "Four", "F", null, false, false); if (isMac && suffix) { var utils = window.windowUtils; @@ -62,8 +62,8 @@ function runTestSet(suffix) $("menu" + suffix).open = true; } - checkAttributes(one, "One", "", "", false, true); - checkAttributes(two, "Cat", "C", "", false, true); + checkAttributes(one, "One", null, null, false, true); + checkAttributes(two, "Cat", "C", null, false, true); checkAttributes(three, "Dog", "D", "false", true, true); checkAttributes(four, "Four", "F", "true", false, true); diff --git a/toolkit/content/tests/chrome/test_menulist_in_popup.xhtml b/toolkit/content/tests/chrome/test_menulist_in_popup.xhtml index 971fe90322..75fb19adcf 100644 --- a/toolkit/content/tests/chrome/test_menulist_in_popup.xhtml +++ b/toolkit/content/tests/chrome/test_menulist_in_popup.xhtml @@ -17,7 +17,7 @@ async function runTest() { let menulist = document.getElementById("menulist"); let menulistPopup = document.getElementById("menulistpopup"); - menulistPopup.addEventListener("popupshown", function(e) { + menulistPopup.addEventListener("popupshown", function() { ok(false, "Menulist popup shown"); }); diff --git a/toolkit/content/tests/chrome/test_menulist_initial_selection.xhtml b/toolkit/content/tests/chrome/test_menulist_initial_selection.xhtml index 19e9beae67..255318f5a7 100644 --- a/toolkit/content/tests/chrome/test_menulist_initial_selection.xhtml +++ b/toolkit/content/tests/chrome/test_menulist_initial_selection.xhtml @@ -29,6 +29,9 @@ async function runTest() { is(menulist2.value, "", "menulist2 should not be selected to the first item's value"); is(menulist2.label, "None", "menulist2 should not be selected to the first item's value"); + is(menulist1.menupopup.querySelectorAll('menuitem[selected="true"]').length, 1, "menulist1 should have only one selected item."); + is(menulist2.menupopup.querySelectorAll('menuitem[selected="true"]').length, 0, "menulist2 should have no selected items."); + SimpleTest.finish(); } @@ -37,17 +40,17 @@ async function runTest() { - + - - - - + + + + diff --git a/toolkit/content/tests/chrome/test_menulist_initial_selection_with_connected_callback.xhtml b/toolkit/content/tests/chrome/test_menulist_initial_selection_with_connected_callback.xhtml new file mode 100644 index 0000000000..2c9b462948 --- /dev/null +++ b/toolkit/content/tests/chrome/test_menulist_initial_selection_with_connected_callback.xhtml @@ -0,0 +1,80 @@ + + + + + + + + + diff --git a/toolkit/content/tests/chrome/test_menulist_null_value.xhtml b/toolkit/content/tests/chrome/test_menulist_null_value.xhtml index 9312c236dc..e0ef42f5bd 100644 --- a/toolkit/content/tests/chrome/test_menulist_null_value.xhtml +++ b/toolkit/content/tests/chrome/test_menulist_null_value.xhtml @@ -34,7 +34,7 @@ function runTests() list.selectedItem = null; is(list.value, "", "Check list value after setting selectedItem to null"); - is(list.getAttribute("label"), "", "Check list label after setting selectedItem to null"); + is(list.getAttribute("label"), null, "Check list label after setting selectedItem to null"); // select something again to make sure the label is not already empty list.selectedIndex = 1; @@ -61,14 +61,14 @@ function runTests() // set the value to null and test it (bug 408940) list.value = null; is(list.value, "", "Check list value after setting value to null"); - is(list.getAttribute("label"), "", "Check list label after setting value to null"); + is(list.getAttribute("label"), null, "Check list label after setting value to null"); // select something again to make sure the label is not already empty list.selectedIndex = 1; // set the value to undefined and test it (bug 408940) list.value = undefined; is(list.value, "", "Check list value after setting value to undefined"); - is(list.getAttribute("label"), "", "Check list label after setting value to undefined"); + is(list.getAttribute("label"), null, "Check list label after setting value to undefined"); // select something again to make sure the label is not already empty list.selectedIndex = 1; @@ -76,7 +76,7 @@ function runTests() // and make sure the previous label is removed list.value = "this does not exist"; is(list.value, "this does not exist", "Check the list value after setting it to something not associated witn an existing menuitem"); - is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a nonexistent item"); + is(list.getAttribute("label"), null, "Check that the list label is empty after selecting a nonexistent item"); SimpleTest.finish(); } diff --git a/toolkit/content/tests/chrome/test_notificationbox.xhtml b/toolkit/content/tests/chrome/test_notificationbox.xhtml index 8de985175a..9a2bc9d888 100644 --- a/toolkit/content/tests/chrome/test_notificationbox.xhtml +++ b/toolkit/content/tests/chrome/test_notificationbox.xhtml @@ -89,8 +89,8 @@ function testtag_notificationbox_buttonpressed(notification, button) } let buttonsPressedLog = ""; -function testtag_notificationbox_button1pressed(notification, button) { buttonsPressedLog += "button1"; return true; } -function testtag_notificationbox_button2pressed(notification, button) { buttonsPressedLog += "button2"; return true; } +function testtag_notificationbox_button1pressed() { buttonsPressedLog += "button1"; return true; } +function testtag_notificationbox_button2pressed() { buttonsPressedLog += "button2"; return true; } function testtag_notificationbox(nb) { @@ -227,7 +227,7 @@ var tests = nb.removeNotification(ntf); return ntf; }, - result(nb, ntf) { + result(nb) { testtag_notificationbox_State(nb, "removeNotification", null, 0); } }, @@ -394,7 +394,7 @@ var tests = nb.removeCurrentNotification(); return ntf; }, - result(nb, ntf) { + result(nb) { testtag_notificationbox_State(nb, "removeCurrentNotification", null, 0); } }, @@ -451,7 +451,7 @@ var tests = }, testtag_notificationbox_buttons_nopopup); return ntf; }, - result(nb, ntf) { + result(nb) { let buttons = nb.currentNotification.buttonContainer.querySelectorAll("* button"); buttons[0].focus(); @@ -510,7 +510,7 @@ var tests = } }, { - async test(nb, unused) { + async test(nb) { // add a number of notifications and check that they are added in order await nb.appendNotification("4", { label: "Four", priority: nb.PRIORITY_INFO_HIGH }, testtag_notificationbox_buttons); @@ -537,11 +537,11 @@ var tests = { // test closing notifications to make sure that the current notification is still set properly repeat: true, - test(nb, testidx) { + test() { this.repeat = false; return undefined; }, - result(nb, arr) { + result(nb) { let notificationOrder = [4, 7, 2, 8, 5, 6, 1, 9, 10, 3]; let allNotificationValues = [...nb.stack.children].map(n => n.getAttribute("value")); is(allNotificationValues.length, notificationOrder.length, "Expected number of notifications"); @@ -556,7 +556,7 @@ var tests = } }, { - async test(nb, ntf) { + async test(nb) { var exh = false; try { await nb.appendNotification("no", { label: "no", priority: -1 }); diff --git a/toolkit/content/tests/chrome/test_popup_keys.xhtml b/toolkit/content/tests/chrome/test_popup_keys.xhtml index 6b8dd31143..e72c496a59 100644 --- a/toolkit/content/tests/chrome/test_popup_keys.xhtml +++ b/toolkit/content/tests/chrome/test_popup_keys.xhtml @@ -37,7 +37,7 @@ let gLastFirstMenuActiveValue = null; function waitForEvent(target, eventName) { return new Promise(resolve => { - target.addEventListener(eventName, function eventOccurred(event) { + target.addEventListener(eventName, function eventOccurred() { resolve(); }, { once: true}); }); diff --git a/toolkit/content/tests/chrome/test_popup_moveToAnchor.xhtml b/toolkit/content/tests/chrome/test_popup_moveToAnchor.xhtml index a7800caaad..628ff2a851 100644 --- a/toolkit/content/tests/chrome/test_popup_moveToAnchor.xhtml +++ b/toolkit/content/tests/chrome/test_popup_moveToAnchor.xhtml @@ -20,7 +20,7 @@ @@ -26,8 +25,7 @@ function getScrollIndexAmount(aDirection) { return (4 * aDirection + richListBox.currentIndex); } -function test_richlistbox() -{ +add_task(function test_richlistbox() { var height = richListBox.clientHeight; var item; do { @@ -93,9 +91,22 @@ function test_richlistbox() richListBox.selectedItem = richListBox.firstChild; richListBox.firstChild.nextSibling.setAttribute("disabled", true); richListBox.focus(); + synthesizeKey("KEY_ArrowDown", {}, window); is(richListBox.selectedItems.length, 1, "one item selected"); - is(richListBox.selectedItems[0], richListBox.firstChild, "first item selected"); + is(richListBox.selectedItems[0], richListBox.getItemAtIndex(2), "skipped over disabled item on keydown"); + + synthesizeKey("KEY_ArrowUp", {}, window); + is(richListBox.selectedItems.length, 1, "one item selected"); + is(richListBox.selectedItems[0], richListBox.firstChild, "skipped over disabled item on keyup"); + + synthesizeMouseAtCenter(richListBox.getItemAtIndex(1), {}); + is(richListBox.selectedItems.length, 1, "one item selected"); + is(richListBox.selectedItems[0], richListBox.firstChild, "cannot select disabled item"); + + synthesizeMouseAtCenter(richListBox.getItemAtIndex(2), {}); + is(richListBox.selectedItems.length, 1, "one item selected"); + is(richListBox.selectedItems[0], richListBox.getItemAtIndex(2), "can select enabled item"); // Selected item re-insertion should keep the item selected. richListBox.clearSelection(); @@ -107,9 +118,7 @@ function test_richlistbox() richListBox.append(item); is(richListBox.selectedItems.length, 1, "one item selected"); is(richListBox.selectedItems[0], item, "last (previosly first) item selected"); - - SimpleTest.finish(); -} +}); ]]> diff --git a/toolkit/content/tests/chrome/test_tree_view.xhtml b/toolkit/content/tests/chrome/test_tree_view.xhtml index 5e45161c6c..c9ec889995 100644 --- a/toolkit/content/tests/chrome/test_tree_view.xhtml +++ b/toolkit/content/tests/chrome/test_tree_view.xhtml @@ -24,23 +24,23 @@ var view = value: "", rowCount: 8, getCellText(row, column) { return this.treeData[row % 4][column.index]; }, - getCellValue(row, column) { return this.value; }, + getCellValue() { return this.value; }, setCellText(row, column, val) { this.treeData[row % 4][column.index] = val; }, setCellValue(row, column, val) { this.value = val; }, setTree(tree) { this.tree = tree; }, - isContainer(row) { return false; }, - isContainerOpen(row) { return false; }, - isContainerEmpty(row) { return false; }, - isSeparator(row) { return false; }, - isSorted(row) { return false; }, + isContainer() { return false; }, + isContainerOpen() { return false; }, + isContainerEmpty() { return false; }, + isSeparator() { return false; }, + isSorted() { return false; }, isEditable(row, column) { return row != 2 || column.index != 1; }, - getParentIndex(row, column) { return -1; }, - getLevel(row) { return 0; }, - hasNextSibling(row, column) { return row != this.rowCount - 1; }, - getImageSrc(row, column) { return ""; }, - cycleHeader(column) { }, - getRowProperties(row) { return ""; }, - getCellProperties(row, column) { return ""; }, + getParentIndex() { return -1; }, + getLevel() { return 0; }, + hasNextSibling(row) { return row != this.rowCount - 1; }, + getImageSrc() { return ""; }, + cycleHeader() { }, + getRowProperties() { return ""; }, + getCellProperties() { return ""; }, getColumnProperties(column) { if (!column.index) { diff --git a/toolkit/content/tests/chrome/window_chromemargin.xhtml b/toolkit/content/tests/chrome/window_chromemargin.xhtml index 81bcba62fe..8c7cf5c0d3 100644 --- a/toolkit/content/tests/chrome/window_chromemargin.xhtml +++ b/toolkit/content/tests/chrome/window_chromemargin.xhtml @@ -16,15 +16,19 @@ function ok(condition, message) { window.arguments[0].SimpleTest.ok(condition, message); } +function is(a, b, message) { + window.arguments[0].SimpleTest.is(a, b, message); +} + function doSingleTest(param) { var exception = null; try { document.documentElement.removeAttribute("chromemargin"); document.documentElement.setAttribute("chromemargin", param); - ok(document. + is(document. documentElement. - getAttribute("chromemargin") == param, "couldn't set/get chromemargin?"); + getAttribute("chromemargin"), param, "couldn't set/get chromemargin?"); } catch (ex) { exception = ex; } @@ -44,7 +48,7 @@ function runTests() // test remove doc.removeAttribute("chromemargin"); - ok(doc.getAttribute("chromemargin") == "", "couldn't remove chromemargin?"); + is(doc.getAttribute("chromemargin"), null, "couldn't remove chromemargin?"); // we already test these really well in a c++ test in widget doSingleTest("1,2,3,4"); diff --git a/toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml b/toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml index d5c0e2753e..fa239a87af 100644 --- a/toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml +++ b/toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml @@ -60,7 +60,7 @@ function finish() window.close(); } -function onMouseMove(aEvent) +function onMouseMove() { var button = document.getElementById("dialog").getButton("accept"); if (button.disabled) diff --git a/toolkit/content/tests/chrome/window_keys.xhtml b/toolkit/content/tests/chrome/window_keys.xhtml index 77a098ef0b..51f3be0a33 100644 --- a/toolkit/content/tests/chrome/window_keys.xhtml +++ b/toolkit/content/tests/chrome/window_keys.xhtml @@ -82,7 +82,7 @@ function runTest() document.documentElement.appendChild(keyset); iterateKeys(true, "appended"); - var accelText = menuitem => menuitem.getAttribute("acceltext").toLowerCase(); + var accelText = menuitem => (menuitem.getAttribute("acceltext") || "").toLowerCase(); $("menubutton").open = true; diff --git a/toolkit/content/tests/chrome/window_largemenu.xhtml b/toolkit/content/tests/chrome/window_largemenu.xhtml index d84b045e78..8e6b6718b4 100644 --- a/toolkit/content/tests/chrome/window_largemenu.xhtml +++ b/toolkit/content/tests/chrome/window_largemenu.xhtml @@ -363,8 +363,8 @@ function testPopupMovement() is(screenX, expectedx, gTests[gTestIndex] + " (6000, 100) x"); is(screenY, 100, gTests[gTestIndex] + " (6000, 100) y"); - is(popup.getAttribute("left"), "", gTests[gTestIndex] + " left is empty after moving"); - is(popup.getAttribute("top"), "", gTests[gTestIndex] + " top is empty after moving"); + is(popup.getAttribute("left"), null, gTests[gTestIndex] + " left is empty after moving"); + is(popup.getAttribute("top"), null, gTests[gTestIndex] + " top is empty after moving"); popup.setAttribute("left", "80"); popup.setAttribute("top", "82"); [screenX, screenY] = getScreenXY(popup); @@ -387,8 +387,8 @@ function testPopupMovement() is(screenX, expectedx, gTests[gTestIndex] + " move after set left and top x to -1"); is(screenY, expectedy, gTests[gTestIndex] + " move after set left and top y to -1"); - is(popup.getAttribute("left"), "", gTests[gTestIndex] + " left is not set after moving to -1"); - is(popup.getAttribute("top"), "", gTests[gTestIndex] + " top is not set after moving to -1"); + is(popup.getAttribute("left"), null, gTests[gTestIndex] + " left is not set after moving to -1"); + is(popup.getAttribute("top"), null, gTests[gTestIndex] + " top is not set after moving to -1"); popup.hidePopup(); } diff --git a/toolkit/content/tests/chrome/window_maximized_persist.xhtml b/toolkit/content/tests/chrome/window_maximized_persist.xhtml index f7eb695f0f..10f7d36d07 100644 --- a/toolkit/content/tests/chrome/window_maximized_persist.xhtml +++ b/toolkit/content/tests/chrome/window_maximized_persist.xhtml @@ -8,7 +8,7 @@ id="window" persist="height width sizemode"> diff --git a/toolkit/content/tests/chrome/window_maximized_persist_with_no_titlebar.xhtml b/toolkit/content/tests/chrome/window_maximized_persist_with_no_titlebar.xhtml index 83fede7fae..e104dfa652 100644 --- a/toolkit/content/tests/chrome/window_maximized_persist_with_no_titlebar.xhtml +++ b/toolkit/content/tests/chrome/window_maximized_persist_with_no_titlebar.xhtml @@ -9,7 +9,7 @@ id="window" persist="height width sizemode"> diff --git a/toolkit/content/tests/chrome/window_popup_anchoratrect.xhtml b/toolkit/content/tests/chrome/window_popup_anchoratrect.xhtml index 524a95b643..2262ba08e9 100644 --- a/toolkit/content/tests/chrome/window_popup_anchoratrect.xhtml +++ b/toolkit/content/tests/chrome/window_popup_anchoratrect.xhtml @@ -79,7 +79,7 @@ let tests = [ }, ]; -function runTest(id) +function runTest() { menupopup = $("popup"); nextTest(); diff --git a/toolkit/content/tests/chrome/window_tooltip.xhtml b/toolkit/content/tests/chrome/window_tooltip.xhtml index b78075de45..e6ee5c6b42 100644 --- a/toolkit/content/tests/chrome/window_tooltip.xhtml +++ b/toolkit/content/tests/chrome/window_tooltip.xhtml @@ -30,6 +30,8 @@ var gOriginalWidth = -1; var gOriginalHeight = -1; var gButton = null; +const kTooltipOffsetVertical = 10; + function runTest() { startPopupTests(popupTests); @@ -112,7 +114,7 @@ var popupTests = [ Math.round(buttonrect.left + parseFloat(popupstyle.marginLeft) + 6), testname + " left position of tooltip"); is(Math.round(rect.top), - Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 6), + Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 6 + kTooltipOffsetVertical), testname + " top position of tooltip"); var labelrect = document.getElementById("label").getBoundingClientRect(); @@ -159,7 +161,7 @@ var popupTests = [ Math.round(buttonrect.left + parseFloat(popupstyle.marginLeft) + 4), testname + " left position of tooltip"); is(Math.round(rect.top), - Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 4), + Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 4 + kTooltipOffsetVertical), testname + " top position of tooltip"); var labelrect = document.getElementById("label").getBoundingClientRect(); @@ -204,7 +206,7 @@ var popupTests = [ Math.round(buttonrect.left + parseFloat(popupstyle.marginLeft) + 6), testname + " left position of tooltip"); is(Math.round(rect.top), - Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 6), + Math.round(buttonrect.top + parseFloat(popupstyle.marginTop) + 6 + kTooltipOffsetVertical), testname + " top position of tooltip"); var labelrect = document.getElementById("label").getBoundingClientRect(); @@ -327,7 +329,43 @@ var popupTests = [ // that the original height has increased by at least 10 pixels ok(gOriginalHeight + 10 < rect.bottom - rect.top, testname + " tooltip is wrapped"); } -} +}, +{ + testname: "anchored tooltip with no offset", + events: ["popupshowing thetooltip", "popupshown thetooltip"], + autohide: "thetooltip", + test() { + gButton = document.getElementById("withtooltip"); + document + .getElementById("thetooltip") + .setAttribute( + "onpopupshowing", + "this.moveToAnchor(this.triggerNode, 'after_start');" + ); + disableNonTestMouse(true); + synthesizeMouse(gButton, 2, 2, { type: "mouseover" }); + synthesizeMouse(gButton, 4, 4, { type: "mousemove" }); + synthesizeMouse(gButton, 6, 6, { type: "mousemove" }); + disableNonTestMouse(false); + }, + result(testname) { + var buttonrect = document + .getElementById("withtooltip") + .getBoundingClientRect(); + var tooltip = document.getElementById("thetooltip"); + var rect = tooltip.getBoundingClientRect(); + var popupstyle = window.getComputedStyle(tooltip); + + // Offset does not apply to anchored tooltips + is( + Math.round(rect.top), + Math.round(buttonrect.bottom + parseFloat(popupstyle.marginTop)), + testname + " top position of tooltip" + ); + + tooltip.removeAttribute("onpopupshowing"); + }, +}, ]; var waitSteps = 0; @@ -359,7 +397,14 @@ function moveWindowTo(x, y, callback, arg) } } -window.arguments[0].SimpleTest.waitForFocus(runTest, window); +(async function() { + let parent = window.arguments[0]; + await Promise.all([ + parent.SimpleTest.promiseFocus(window), + parent.SpecialPowers.pushPrefEnv({set: [["ui.tooltipOffsetVertical", kTooltipOffsetVertical]]}), + ]); + runTest(); +})(); ]]> diff --git a/toolkit/content/tests/widgets/chrome.toml b/toolkit/content/tests/widgets/chrome.toml index 18fe0d153a..fa10249e89 100644 --- a/toolkit/content/tests/widgets/chrome.toml +++ b/toolkit/content/tests/widgets/chrome.toml @@ -5,7 +5,7 @@ support-files = [ "popup_shared.js", "window_label_checkbox.xhtml", "window_menubar.xhtml", - "seek_with_sound.ogg", + "seek_with_sound.webm", ] prefs = ["app.support.baseURL='https://support.mozilla.org/'"] @@ -63,7 +63,7 @@ skip-if = [ ["test_videocontrols_focus.html"] support-files = [ "head.js", - "video.ogg", + "video.webm", ] skip-if = [ "os == 'android'", diff --git a/toolkit/content/tests/widgets/file_videocontrols_jsdisabled.html b/toolkit/content/tests/widgets/file_videocontrols_jsdisabled.html index 56917b69ac..95dba91eea 100644 --- a/toolkit/content/tests/widgets/file_videocontrols_jsdisabled.html +++ b/toolkit/content/tests/widgets/file_videocontrols_jsdisabled.html @@ -1,2 +1,2 @@ - + diff --git a/toolkit/content/tests/widgets/head.js b/toolkit/content/tests/widgets/head.js index d7473fa92d..2a72845a27 100644 --- a/toolkit/content/tests/widgets/head.js +++ b/toolkit/content/tests/widgets/head.js @@ -51,7 +51,7 @@ function executeTests() { } function once(target, name, cb) { - let p = new Promise(function (resolve, reject) { + let p = new Promise(function (resolve) { target.addEventListener( name, function () { diff --git a/toolkit/content/tests/widgets/mochitest.toml b/toolkit/content/tests/widgets/mochitest.toml index 7e20352256..efd86f1208 100644 --- a/toolkit/content/tests/widgets/mochitest.toml +++ b/toolkit/content/tests/widgets/mochitest.toml @@ -5,8 +5,8 @@ support-files = [ "file_videocontrols_jsdisabled.html", "image.png", "image-zh.png", - "seek_with_sound.ogg", - "video.ogg", + "seek_with_sound.webm", + "video.webm", "head.js", "tree_shared.js", "test-webvtt-1.vtt", @@ -97,7 +97,10 @@ skip-if = [ ["test_videocontrols_size.html"] ["test_videocontrols_standalone.html"] -skip-if = ["os == 'android'"] # bug 1075573 +skip-if = [ + "os == 'linux'", # bug 1804621 + "os == 'android'", # bug 1075573 +] ["test_videocontrols_video_direction.html"] skip-if = [ diff --git a/toolkit/content/tests/widgets/seek_with_sound.ogg b/toolkit/content/tests/widgets/seek_with_sound.ogg deleted file mode 100644 index c86d9946bd..0000000000 Binary files a/toolkit/content/tests/widgets/seek_with_sound.ogg and /dev/null differ diff --git a/toolkit/content/tests/widgets/seek_with_sound.webm b/toolkit/content/tests/widgets/seek_with_sound.webm new file mode 100644 index 0000000000..dd60cc5a0a Binary files /dev/null and b/toolkit/content/tests/widgets/seek_with_sound.webm differ diff --git a/toolkit/content/tests/widgets/test_moz_button.html b/toolkit/content/tests/widgets/test_moz_button.html index 473b2d1a1c..a849ccc956 100644 --- a/toolkit/content/tests/widgets/test_moz_button.html +++ b/toolkit/content/tests/widgets/test_moz_button.html @@ -75,24 +75,23 @@ color: "--button-text-color-primary", height: "--button-min-height", }); - assertButtonPropertiesMatch(four, { width: "--button-size-icon", height: "--button-size-icon", backgroundColor: "--button-background-color", - fill: "--button-text-color", + fill: "--icon-color", }); assertButtonPropertiesMatch(five, { width: "--button-size-icon", height: "--button-size-icon", backgroundColor: "transparent", - fill: "--button-text-color", + fill: "--icon-color", }); assertButtonPropertiesMatch(six, { width: "--button-size-icon", height: "--button-size-icon", backgroundColor: "transparent", - fill: "--button-text-color", + fill: "--icon-color", }); buttons.forEach(btn => (btn.size = "small")); diff --git a/toolkit/content/tests/widgets/test_moz_card.html b/toolkit/content/tests/widgets/test_moz_card.html index ef4e67d0fa..aa9ecfde31 100644 --- a/toolkit/content/tests/widgets/test_moz_card.html +++ b/toolkit/content/tests/widgets/test_moz_card.html @@ -13,6 +13,11 @@

    +
    TEST
    @@ -25,6 +30,12 @@

    + +
    heading icon test content
    +
    +
    +
    
       
     
     
    diff --git a/toolkit/content/tests/widgets/test_popupreflows.xhtml b/toolkit/content/tests/widgets/test_popupreflows.xhtml
    index c3f8068779..c014d6bee4 100644
    --- a/toolkit/content/tests/widgets/test_popupreflows.xhtml
    +++ b/toolkit/content/tests/widgets/test_popupreflows.xhtml
    @@ -20,7 +20,7 @@ let panel, anchor;
     // done by the panel.
     let observer = {
       reflows: [],
    -  reflow (start, end) {
    +  reflow () {
         // Ignore reflows triggered by native code
         // (Reflows from native code only have an empty stack after the first frame)
         var path = (new Error().stack).split("\n").slice(1).join("");
    @@ -31,7 +31,7 @@ let observer = {
         this.reflows.push(new Error().stack);
       },
     
    -  reflowInterruptible (start, end) {
    +  reflowInterruptible () {
         // We're not interested in interruptible reflows.  Why, you ask?  Because
         // we've simply cargo-culted this test from browser_tabopen_reflows.js!
       },
    diff --git a/toolkit/content/tests/widgets/test_videocontrols.html b/toolkit/content/tests/widgets/test_videocontrols.html
    index 076b4350fd..f2fc53a1cc 100644
    --- a/toolkit/content/tests/widgets/test_videocontrols.html
    +++ b/toolkit/content/tests/widgets/test_videocontrols.html
    @@ -184,7 +184,7 @@ add_task(async function setup() {
           ]});
       await new Promise(resolve => {
         video.addEventListener("canplaythrough", resolve, {once: true});
    -    video.src = "seek_with_sound.ogg";
    +    video.src = "seek_with_sound.webm";
       });
     
       video.addEventListener("play", captureEventThenCheck);
    @@ -437,7 +437,7 @@ add_task(async function click_and_hold_slider() {
      * Bug 1402877: Don't let click event dispatch through media controls to video element.
      */
     add_task(async function click_event_dispatch() {
    -  const clientScriptClickHandler = (e) => {
    +  const clientScriptClickHandler = () => {
         ok(false, "Should not receive the event");
       };
       video.addEventListener("click", clientScriptClickHandler);
    diff --git a/toolkit/content/tests/widgets/test_videocontrols_audio.html b/toolkit/content/tests/widgets/test_videocontrols_audio.html
    index ad528f4c27..0a7a2dcbc3 100644
    --- a/toolkit/content/tests/widgets/test_videocontrols_audio.html
    +++ b/toolkit/content/tests/widgets/test_videocontrols_audio.html
    @@ -18,7 +18,7 @@
     
    +```
    +
    +And used as follows:
    +
    +```html
    +
    +    
    +    
    +    
    +    
    +    
    +    
    +
    +```
    +
    +### Fluent usage
    +
    +Generally the `heading` property of
    +`moz-page-nav` will be provided via [Fluent attributes](https://mozilla-l10n.github.io/localizer-documentation/tools/fluent/basic_syntax.html#attributes).
    +To get this working you will need to specify a `data-l10n-id` as well as
    +`data-l10n-attrs` if you're providing a heading:
    +
    +```html
    +
    +```
    +
    +In which case your Fluent messages will look something like this:
    +
    +```
    +with-heading =
    +  .heading = Heading text goes here
    +```
    +
    +You also need to specify a `data-l10n-id` for each `moz-page-nav-button`:
    +
    +```html
    +
    +```
    +
    +```
    +with-button-text = button text goes here
    +```
    diff --git a/toolkit/content/widgets/moz-page-nav/moz-page-nav-button.css b/toolkit/content/widgets/moz-page-nav/moz-page-nav-button.css
    index 2975bb1a7c..5d00198d65 100644
    --- a/toolkit/content/widgets/moz-page-nav/moz-page-nav-button.css
    +++ b/toolkit/content/widgets/moz-page-nav/moz-page-nav-button.css
    @@ -13,7 +13,7 @@ button {
       background-color: var(--page-nav-button-background-color);
       border: 1px solid var(--page-nav-border-color);
       -moz-context-properties: fill, fill-opacity;
    -  fill: currentColor;
    +  fill: var(--icon-color);
       display: grid;
       grid-template-columns: min-content 1fr;
       gap: 12px;
    @@ -34,34 +34,35 @@ button:hover {
     
     @media not (prefers-contrast) {
       button {
    -    border-inline-start: 2px solid transparent;
    -    border-inline-end: none;
    -    border-block: none;
    +    position: relative;
       }
     
    -  button:hover,
    -  button[selected]:hover {
    -    background-color: var(--page-nav-button-background-color-hover);
    +  button::before {
    +    content: "";
    +    display: block;
    +    position: absolute;
    +    inset-block: 0;
    +    inset-inline-start: 0;
    +    width: 2px;
    +    background-color: transparent;
       }
     
    -  button[selected]:hover {
    -    border-inline-start-color: inherit;
    +  button[selected]::before {
    +    background-color: var(--color-accent-primary);
       }
     
    -  button[selected],
    -  button[selected]:hover {
    -    border-inline-start: 2px solid;
    +  button[selected]:hover::before {
    +    background-color: var(--icon-color);
       }
     
    -  button[selected]:not(:focus-visible) {
    -    border-start-start-radius: 0;
    -    border-end-start-radius: 0;
    +  button:hover,
    +  button[selected]:hover {
    +    background-color: var(--page-nav-button-background-color-hover);
       }
     
       button[selected]:not(:hover) {
         color: var(--color-accent-primary);
         background-color: color-mix(in srgb, var(--page-nav-button-background-color-selected) 5%, transparent);
    -    border-inline-start-color: var(--color-accent-primary);
       }
     }
     
    @@ -74,7 +75,7 @@ button:hover {
     button:focus-visible,
     button[selected]:focus-visible {
       outline: var(--focus-outline);
    -  outline-offset: var(--focus-outline-offset);
    +  outline-offset: 0;
       border-radius: var(--border-radius-small);
     }
     
    diff --git a/toolkit/content/widgets/moz-page-nav/moz-page-nav.css b/toolkit/content/widgets/moz-page-nav/moz-page-nav.css
    index 49000f622d..8e6724b2f5 100644
    --- a/toolkit/content/widgets/moz-page-nav/moz-page-nav.css
    +++ b/toolkit/content/widgets/moz-page-nav/moz-page-nav.css
    @@ -20,6 +20,7 @@
       position: sticky;
       top: 0;
       height: 100vh;
    +  display: block;
       width: var(--page-nav-width);
     
       @media (prefers-reduced-motion) {
    @@ -38,7 +39,7 @@ nav {
       grid-template-rows: min-content 1fr auto;
       gap: var(--page-nav-gap);
       margin-block: var(--page-nav-margin-top) var(--page-nav-margin-bottom);
    -  height: calc(100vh - var(--page-nav-margin-top) - var(--page-nav-margin-bottom));
    +  height: calc(100% - var(--page-nav-margin-top) - var(--page-nav-margin-bottom));
       @media (max-width: 52rem) {
         grid-template-rows: 1fr auto;
       }
    diff --git a/toolkit/content/widgets/moz-toggle/moz-toggle.css b/toolkit/content/widgets/moz-toggle/moz-toggle.css
    index 2005544181..ba98e80021 100644
    --- a/toolkit/content/widgets/moz-toggle/moz-toggle.css
    +++ b/toolkit/content/widgets/moz-toggle/moz-toggle.css
    @@ -37,7 +37,7 @@
       --toggle-background-color-pressed: var(--color-accent-primary);
       --toggle-background-color-pressed-hover: var(--color-accent-primary-hover);
       --toggle-background-color-pressed-active: var(--color-accent-primary-active);
    -  --toggle-border-color: var(--border-interactive-color);
    +  --toggle-border-color: var(--border-color-interactive);
       --toggle-border-color-hover: var(--toggle-border-color);
       --toggle-border-color-active: var(--toggle-border-color);
       --toggle-border-radius: var(--border-radius-circle);
    @@ -47,7 +47,7 @@
       --toggle-dot-background-color: var(--toggle-border-color);
       --toggle-dot-background-color-hover: var(--toggle-dot-background-color);
       --toggle-dot-background-color-active: var(--toggle-dot-background-color);
    -  --toggle-dot-background-color-on-pressed: var(--color-canvas);
    +  --toggle-dot-background-color-on-pressed: var(--background-color-canvas);
       --toggle-dot-margin: 1px;
       --toggle-dot-height: calc(var(--toggle-height) - 2 * var(--toggle-dot-margin) - 2 * var(--toggle-border-width));
       --toggle-dot-width: var(--toggle-dot-height);
    @@ -77,7 +77,7 @@
       border-color: var(--toggle-border-color);
     }
     
    -.toggle-button:enabled:active {
    +.toggle-button:enabled:hover:active {
       background: var(--toggle-background-color-active);
       border-color: var(--toggle-border-color);
     }
    @@ -92,7 +92,7 @@
       border-color: transparent;
     }
     
    -.toggle-button[aria-pressed="true"]:enabled:active {
    +.toggle-button[aria-pressed="true"]:enabled:hover:active {
       background: var(--toggle-background-color-pressed-active);
       border-color: transparent;
     }
    @@ -114,7 +114,7 @@
     }
     
     .toggle-button[aria-pressed="true"]:enabled:hover::before,
    -.toggle-button[aria-pressed="true"]:enabled:active::before {
    +.toggle-button[aria-pressed="true"]:enabled:hover:active::before {
       background-color: var(--toggle-dot-background-color-on-pressed);
     }
     
    @@ -149,7 +149,7 @@
         border-color: var(--toggle-border-color-hover);
       }
     
    -  .toggle-button:enabled:active {
    +  .toggle-button:enabled:hover:active {
         border-color: var(--toggle-border-color-active);
       }
     
    @@ -163,13 +163,13 @@
         border-color: var(--toggle-border-color-hover);
       }
     
    -  .toggle-button[aria-pressed="true"]:enabled:active {
    +  .toggle-button[aria-pressed="true"]:enabled:hover:active {
         background-color: var(--toggle-dot-background-color-active);
         border-color: var(--toggle-dot-background-color-hover);
       }
     
       .toggle-button:hover::before,
    -  .toggle-button:active::before {
    +  .toggle-button:hover:active::before {
         background-color: var(--toggle-dot-background-color-hover);
       }
     }
    @@ -181,9 +181,9 @@
         --toggle-dot-background-color-active: var(--color-accent-primary-active);
         --toggle-dot-background-color-on-pressed: var(--button-background-color);
         --toggle-background-color-disabled: var(--button-background-color-disabled);
    -    --toggle-border-color-hover: var(--border-interactive-color-hover);
    -    --toggle-border-color-active: var(--border-interactive-color-active);
    -    --toggle-border-color-disabled: var(--border-interactive-color-disabled);
    +    --toggle-border-color-hover: var(--border-color-interactive-hover);
    +    --toggle-border-color-active: var(--border-color-interactive-active);
    +    --toggle-border-color-disabled: var(--border-color-interactive-disabled);
       }
     
       .toggle-button[aria-pressed="true"]:enabled::after {
    @@ -197,7 +197,7 @@
         inset: -2px;
       }
     
    -  .toggle-button[aria-pressed="true"]:enabled:active::after {
    +  .toggle-button[aria-pressed="true"]:enabled:hover:active::after {
         border-color: var(--toggle-border-color-active);
       }
     }
    diff --git a/toolkit/content/widgets/notificationbox.js b/toolkit/content/widgets/notificationbox.js
    index 0161588853..8cfc7b865c 100644
    --- a/toolkit/content/widgets/notificationbox.js
    +++ b/toolkit/content/widgets/notificationbox.js
    @@ -663,6 +663,10 @@
             }
           }
     
    +      closeButtonTemplate() {
    +        return super.closeButtonTemplate({ size: "small" });
    +      }
    +
           #setStyles() {
             let style = document.createElement("link");
             style.rel = "stylesheet";
    diff --git a/toolkit/content/widgets/radio.js b/toolkit/content/widgets/radio.js
    index 41e8a945ba..52ace9bf6b 100644
    --- a/toolkit/content/widgets/radio.js
    +++ b/toolkit/content/widgets/radio.js
    @@ -214,7 +214,7 @@
         }
     
         get value() {
    -      return this.getAttribute("value");
    +      return this.getAttribute("value") || "";
         }
     
         set disabled(val) {
    @@ -526,7 +526,7 @@
         }
     
         get value() {
    -      return this.getAttribute("value");
    +      return this.getAttribute("value") || "";
         }
     
         get selected() {
    diff --git a/toolkit/content/widgets/richlistbox.js b/toolkit/content/widgets/richlistbox.js
    index 01d970e6ed..0d669c4c5e 100644
    --- a/toolkit/content/widgets/richlistbox.js
    +++ b/toolkit/content/widgets/richlistbox.js
    @@ -109,14 +109,14 @@
             for (var i = 0; i < rowCount; i++) {
               var k = (start + i) % rowCount;
               var listitem = this.getItemAtIndex(k);
    -          if (!this._canUserSelect(listitem)) {
    +          if (!this.canUserSelect(listitem)) {
                 continue;
               }
               // allow richlistitems to specify the string being searched for
               var searchText =
                 "searchLabel" in listitem
                   ? listitem.searchLabel
    -              : listitem.getAttribute("label"); // (see also bug 250123)
    +              : listitem.getAttribute("label") || ""; // (see also bug 250123)
               searchText = searchText.substring(0, length).toLowerCase();
               if (searchText == incrementalString) {
                 this.ensureIndexIsVisible(k);
    @@ -227,7 +227,7 @@
           this.setAttribute("seltype", val);
         }
         get selType() {
    -      return this.getAttribute("seltype");
    +      return this.getAttribute("seltype") || "";
         }
     
         // nsIDOMXULSelectControlElement
    @@ -337,7 +337,7 @@
             if (
               aStartItem &&
               aStartItem.localName == "richlistitem" &&
    -          (!this._userSelecting || this._canUserSelect(aStartItem))
    +          (!this._userSelecting || this.canUserSelect(aStartItem))
             ) {
               --aDelta;
               if (aDelta == 0) {
    @@ -354,7 +354,7 @@
             if (
               aStartItem &&
               aStartItem.localName == "richlistitem" &&
    -          (!this._userSelecting || this._canUserSelect(aStartItem))
    +          (!this._userSelecting || this.canUserSelect(aStartItem))
             ) {
               --aDelta;
               if (aDelta == 0) {
    @@ -771,7 +771,7 @@
     
           var newItem = this.getItemAtIndex(newIndex);
           // make sure that the item is actually visible/selectable
    -      if (this._userSelecting && newItem && !this._canUserSelect(newItem)) {
    +      if (this._userSelecting && newItem && !this.canUserSelect(newItem)) {
             newItem =
               aOffset > 0
                 ? this.getNextItem(newItem, 1) || this.getPreviousItem(newItem, 1)
    @@ -811,7 +811,11 @@
           }
         }
     
    -    _canUserSelect(aItem) {
    +    canUserSelect(aItem) {
    +      if (aItem.disabled) {
    +        return false;
    +      }
    +
           var style = document.defaultView.getComputedStyle(aItem);
           return (
             style.display != "none" &&
    @@ -886,7 +890,7 @@
            */
           this.addEventListener("mousedown", event => {
             var control = this.control;
    -        if (!control || control.disabled) {
    +        if (!control || this.disabled || control.disabled) {
               return;
             }
             if (
    @@ -912,7 +916,7 @@
             }
     
             var control = this.control;
    -        if (!control || control.disabled) {
    +        if (!control || this.disabled || control.disabled) {
               return;
             }
             control._userSelecting = true;
    @@ -977,7 +981,7 @@
         }
     
         get value() {
    -      return this.getAttribute("value");
    +      return this.getAttribute("value") || "";
         }
     
         /**
    diff --git a/toolkit/content/widgets/tabbox.js b/toolkit/content/widgets/tabbox.js
    index b1b2ddecce..f4003d002c 100644
    --- a/toolkit/content/widgets/tabbox.js
    +++ b/toolkit/content/widgets/tabbox.js
    @@ -459,7 +459,7 @@
         }
     
         get value() {
    -      return this.getAttribute("value");
    +      return this.getAttribute("value") || "";
         }
     
         get control() {
    @@ -563,7 +563,7 @@
         }
     
         get value() {
    -      return this.getAttribute("value");
    +      return this.getAttribute("value") || "";
         }
     
         get tabbox() {
    diff --git a/toolkit/content/widgets/tree.js b/toolkit/content/widgets/tree.js
    index 4993bef0c2..a871d3396f 100644
    --- a/toolkit/content/widgets/tree.js
    +++ b/toolkit/content/widgets/tree.js
    @@ -1078,7 +1078,7 @@
         }
     
         get selType() {
    -      return this.getAttribute("seltype");
    +      return this.getAttribute("seltype") || "";
         }
     
         set currentIndex(val) {
    diff --git a/toolkit/content/widgets/wizard.js b/toolkit/content/widgets/wizard.js
    index c4285fada5..8a3b9c164d 100644
    --- a/toolkit/content/widgets/wizard.js
    +++ b/toolkit/content/widgets/wizard.js
    @@ -222,7 +222,7 @@
             cp &&
             ((this._accessMethod == "sequential" &&
               cp.pageIndex == this.pageCount - 1) ||
    -          (this._accessMethod == "random" && cp.next == ""))
    +          (this._accessMethod == "random" && !cp.next))
           );
         }
     
    @@ -381,7 +381,7 @@
           aPage.pageIndex = this.pageCount;
           this.pageCount += 1;
           if (!this._accessMethod) {
    -        this._accessMethod = aPage.next == "" ? "sequential" : "random";
    +        this._accessMethod = aPage.next ? "random" : "sequential";
           }
           if (!this._maybeStartWizard() && this._hasStarted) {
             // If the wizard has already started, adding a page might require
    diff --git a/toolkit/content/xul.css b/toolkit/content/xul.css
    index ead9997295..908132d598 100644
    --- a/toolkit/content/xul.css
    +++ b/toolkit/content/xul.css
    @@ -389,10 +389,6 @@ tooltip {
       pointer-events: none;
     }
     
    -tooltip:not([position]) {
    -  margin-top: 21px;
    -}
    -
     /**
      * It's important that these styles are in a UA sheet, because the default
      * tooltip is native anonymous content
    -- 
    cgit v1.2.3