From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- dom/base/test/browser_page_load_event_telemetry.js | 10 ++++ dom/base/test/chrome/bug418986-1.js | 2 +- dom/base/test/fullscreen/browser.toml | 3 + .../jsmodules/importmaps/bug_1893164_module_1.mjs | 3 + .../jsmodules/importmaps/bug_1893164_module_2.mjs | 5 ++ .../jsmodules/importmaps/bug_1893164_module_3.mjs | 1 + .../jsmodules/importmaps/bug_1894631_module_1.mjs | 5 ++ .../jsmodules/importmaps/bug_1894631_module_2.mjs | 3 + .../jsmodules/importmaps/bug_1894631_module_3.mjs | 1 + .../jsmodules/importmaps/bug_1894631_module_4.mjs | 1 + dom/base/test/jsmodules/importmaps/mochitest.toml | 10 ++++ .../jsmodules/importmaps/test_bug_1893164.html | 20 +++++++ .../test_shared_submodules_with_modulepreload.html | 30 ++++++++++ .../test/test_anchor_target_blank_referrer.html | 3 + dom/base/test/test_focus_radio.html | 69 +++++++++++++++++++++- 15 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs create mode 100644 dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs create mode 100644 dom/base/test/jsmodules/importmaps/test_bug_1893164.html create mode 100644 dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html (limited to 'dom/base/test') diff --git a/dom/base/test/browser_page_load_event_telemetry.js b/dom/base/test/browser_page_load_event_telemetry.js index 871e06026a..530d45db9a 100644 --- a/dom/base/test/browser_page_load_event_telemetry.js +++ b/dom/base/test/browser_page_load_event_telemetry.js @@ -34,6 +34,16 @@ add_task(async function () { 30, "Should have at least 30 page load events" ); + + // Ensure the events in the pageload ping are reasonable. + record.forEach(entry => { + Assert.equal(entry.name, "page_load"); + Assert.greater(parseInt(entry.extra.load_time), 0); + Assert.ok( + entry.extra.using_webdriver, + "Webdriver field should be set to true." + ); + }); }); // Perform page load 30 times to trigger the ping being sent diff --git a/dom/base/test/chrome/bug418986-1.js b/dom/base/test/chrome/bug418986-1.js index e7e3c63b5c..565ae418dd 100644 --- a/dom/base/test/chrome/bug418986-1.js +++ b/dom/base/test/chrome/bug418986-1.js @@ -35,7 +35,7 @@ var test = function (isContent) { ["screen.orientation.type", "'landscape-primary'"], ["screen.orientation.angle", 0], ["screen.mozOrientation", "'landscape-primary'"], - ["devicePixelRatio", 1], + ["devicePixelRatio", 2], ]; // checkPair: tests if members of pair [a, b] are equal when evaluated. diff --git a/dom/base/test/fullscreen/browser.toml b/dom/base/test/fullscreen/browser.toml index dc883a4ac2..7c989bafcb 100644 --- a/dom/base/test/fullscreen/browser.toml +++ b/dom/base/test/fullscreen/browser.toml @@ -45,6 +45,9 @@ skip-if = [ ["browser_fullscreen-sizemode.js"] ["browser_fullscreen-tab-close-race.js"] +skip-if = [ + "apple_silicon && !debug", # Bug 1877642 +] ["browser_fullscreen-tab-close.js"] diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs new file mode 100644 index 0000000000..45894ce609 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_1.mjs @@ -0,0 +1,3 @@ +/* eslint-disable import/no-named-default, import/no-unresolved */ +import { default as default_non } from "./non_existing.mjs"; +import { default as default_3 } from "./bug_1893164_module_3.mjs"; diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs new file mode 100644 index 0000000000..e6f5e9f9f0 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_2.mjs @@ -0,0 +1,5 @@ +/* eslint-disable import/no-named-default */ +import { default as default_3 } from "./bug_1893164_module_3.mjs"; + +module2_loaded = true; +result = default_3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs b/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs new file mode 100644 index 0000000000..dbb41f0e1f --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1893164_module_3.mjs @@ -0,0 +1 @@ +export default 3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs new file mode 100644 index 0000000000..b0c91fe0cf --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_1.mjs @@ -0,0 +1,5 @@ +/* eslint-disable import/no-named-default, import/no-unresolved, import/named */ +import { default as default_2 } from "./bug_1894631_module_2.mjs"; +import { default as default_non } from "./non_existing.mjs"; + +module1_loaded = true; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs new file mode 100644 index 0000000000..dd17da2abc --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_2.mjs @@ -0,0 +1,3 @@ +/* eslint-disable import/no-named-default */ +import { default as default_3 } from "./bug_1894631_module_3.mjs"; +import { default as default_4 } from "./bug_1894631_module_4.mjs"; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs new file mode 100644 index 0000000000..dbb41f0e1f --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_3.mjs @@ -0,0 +1 @@ +export default 3; diff --git a/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs b/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs new file mode 100644 index 0000000000..456ffaafac --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/bug_1894631_module_4.mjs @@ -0,0 +1 @@ +export default 4; diff --git a/dom/base/test/jsmodules/importmaps/mochitest.toml b/dom/base/test/jsmodules/importmaps/mochitest.toml index 1f95b155ac..b71bf21def 100644 --- a/dom/base/test/jsmodules/importmaps/mochitest.toml +++ b/dom/base/test/jsmodules/importmaps/mochitest.toml @@ -3,6 +3,13 @@ support-files = [ "bug_1865410_module_a.mjs", "bug_1865410_module_b.mjs", "bug_1873417.mjs", + "bug_1893164_module_1.mjs", + "bug_1893164_module_2.mjs", + "bug_1893164_module_3.mjs", + "bug_1894631_module_1.mjs", + "bug_1894631_module_2.mjs", + "bug_1894631_module_3.mjs", + "bug_1894631_module_4.mjs", "classic_script.js", "module_chain_1.mjs", "module_chain_2.mjs", @@ -34,7 +41,10 @@ support-files = [ ["test_bug_1873417.html"] +["test_bug_1893164.html"] + ["test_importMap_with_external_script.html"] ["test_importMap_with_nonexisting_module.html"] ["test_dynamic_importMap_with_external_script.html"] ["test_dynamic_importMap_load_completes.html"] +["test_shared_submodules_with_modulepreload.html"] diff --git a/dom/base/test/jsmodules/importmaps/test_bug_1893164.html b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html new file mode 100644 index 0000000000..6c5306b815 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/test_bug_1893164.html @@ -0,0 +1,20 @@ + + +Test module cancel + + + + + + + diff --git a/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html b/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html new file mode 100644 index 0000000000..a99582f8d3 --- /dev/null +++ b/dom/base/test/jsmodules/importmaps/test_shared_submodules_with_modulepreload.html @@ -0,0 +1,30 @@ + + +Test module cancel won't trigger an assert + + + + + + + + + + diff --git a/dom/base/test/test_anchor_target_blank_referrer.html b/dom/base/test/test_anchor_target_blank_referrer.html index b494c28017..643cfd6c03 100644 --- a/dom/base/test/test_anchor_target_blank_referrer.html +++ b/dom/base/test/test_anchor_target_blank_referrer.html @@ -35,6 +35,9 @@ const testCases = [ {ACTION: ["generate-anchor-target-blank-policy-test"], + PREFS: [ + ["dom.security.https_first", false], // need to test http and https + ], TESTS: [ // Referrer policy is set in meta {NAME: 'origin-in-meta-rel-noopener', diff --git a/dom/base/test/test_focus_radio.html b/dom/base/test/test_focus_radio.html index 8e97012745..9e14143143 100644 --- a/dom/base/test/test_focus_radio.html +++ b/dom/base/test/test_focus_radio.html @@ -2,7 +2,14 @@ Test for input radio focus - +
a @@ -26,6 +33,27 @@
+
+ e + + + + +
+
+ f + + + + +
+
+ g + + + + +
-- cgit v1.2.3