summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/general')
-rw-r--r--dom/tests/mochitest/general/mochitest.toml8
-rw-r--r--dom/tests/mochitest/general/test_focus_scrollchildframe.html12
-rw-r--r--dom/tests/mochitest/general/test_interfaces.js40
3 files changed, 38 insertions, 22 deletions
diff --git a/dom/tests/mochitest/general/mochitest.toml b/dom/tests/mochitest/general/mochitest.toml
index b8ec30f510..06137a8dd9 100644
--- a/dom/tests/mochitest/general/mochitest.toml
+++ b/dom/tests/mochitest/general/mochitest.toml
@@ -194,7 +194,7 @@ skip-if = [
["test_resizeby.html"]
skip-if = [
"os == 'android'", # Window sizes cannot be controled on android; Windows
- "os == 'linux' && bits == 64",# Bug 1604152
+ "os == 'linux' && os_version == '18.04' && bits == 64",# Bug 1604152
]
["test_resource_timing.html"]
@@ -261,8 +261,10 @@ skip-if = [
["test_toggling_performance_navigation_timing.html"]
skip-if = [
- "os == 'win' && bits == 64 && !debug", # Bug 1730152
- "os == 'mac' && bits == 64 && !debug", # Bug 1730152
+ "win10_2009 && bits == 64 && !debug", # Bug 1730152
+ "win11_2009 && bits == 64 && !debug", # Bug 1730152
+ "apple_catalina && !debug", # Bug 1730152
+ "apple_silicon && !debug", # Bug 1730152
]
["test_vibrator.html"]
diff --git a/dom/tests/mochitest/general/test_focus_scrollchildframe.html b/dom/tests/mochitest/general/test_focus_scrollchildframe.html
index 4b12462c45..5bb13002b8 100644
--- a/dom/tests/mochitest/general/test_focus_scrollchildframe.html
+++ b/dom/tests/mochitest/general/test_focus_scrollchildframe.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
- <title>Tests for for-of loops</title>
+ <title>Test for using TAB to move focus and scroll into view</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
@@ -11,10 +11,18 @@
<div id="content" style="display: none"></div>
<script>
function doTest() {
+ var canTabMoveFocusToRootElement =
+ !SpecialPowers.getBoolPref("dom.disable_tab_focus_to_root_element");
document.getElementById("button").focus();
+ const iframe = document.querySelector("iframe");
is(window.scrollY, 0, "Scrolled position initially 0");
synthesizeKey("KEY_Tab");
- ok(window.scrollY > 200, "Scrolled child frame into view");
+ is(document.activeElement, iframe, "Focus moved to the iframe");
+ if (canTabMoveFocusToRootElement) {
+ ok(window.scrollY > 200, "Scrolled child frame into view");
+ } else {
+ is(window.scrollY, 0, "Scrolled position remained the same");
+ }
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js
index 366a9203c7..fd15348532 100644
--- a/dom/tests/mochitest/general/test_interfaces.js
+++ b/dom/tests/mochitest/general/test_interfaces.js
@@ -182,6 +182,10 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "AudioContext", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "AudioData", insecureContext: true, nightly: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "AudioDecoder", nightly: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "AudioBufferSourceNode", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "AudioDestinationNode", insecureContext: true },
@@ -262,11 +266,7 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ConstantSourceNode", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- {
- name: "ContentVisibilityAutoStateChangeEvent",
- insecureContext: true,
- nightly: true,
- },
+ { name: "ContentVisibilityAutoStateChangeEvent", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ConvolverNode", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
@@ -390,8 +390,6 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "DOMRectReadOnly", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "DOMRequest", insecureContext: true, disabled: true },
- // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "DOMStringList", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "DOMStringMap", insecureContext: true },
@@ -406,6 +404,8 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ElementInternals", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "EncodedAudioChunk", insecureContext: true, nightly: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "EncodedVideoChunk", insecureContext: true, nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ErrorEvent", insecureContext: true },
@@ -456,23 +456,23 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "GainNode", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "Gamepad", insecureContext: false },
+ { name: "Gamepad", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadAxisMoveEvent", insecureContext: false },
+ { name: "GamepadAxisMoveEvent", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadButtonEvent", insecureContext: false },
+ { name: "GamepadButtonEvent", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadButton", insecureContext: false },
+ { name: "GamepadButton", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadEvent", insecureContext: false },
+ { name: "GamepadEvent", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadHapticActuator", insecureContext: false },
+ { name: "GamepadHapticActuator", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadLightIndicator", insecureContext: false, disabled: true },
+ { name: "GamepadLightIndicator", insecureContext: true, disabled: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadPose", insecureContext: false },
+ { name: "GamepadPose", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "GamepadTouch", insecureContext: false, disabled: true },
+ { name: "GamepadTouch", insecureContext: true, disabled: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Geolocation", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
@@ -1074,6 +1074,8 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "RTCIceCandidate", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "RTCIceTransport", insecureContext: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "RTCPeerConnection", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "RTCPeerConnectionIceEvent", insecureContext: true },
@@ -1645,7 +1647,7 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onbeforeprint", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
- { name: "onbeforetoggle", insecureContext: true, nightly: true },
+ { name: "onbeforetoggle", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onbeforeunload", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
@@ -1663,8 +1665,12 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onclose", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "oncontextlost", insecureContext: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncontextmenu", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
+ { name: "oncontextrestored", insecureContext: true },
+ // IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncopy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncuechange", insecureContext: true },