diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/fullscreen/crashtests | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/fullscreen/crashtests')
3 files changed, 65 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fullscreen/crashtests/backdrop-list-item.html b/testing/web-platform/tests/fullscreen/crashtests/backdrop-list-item.html new file mode 100644 index 0000000000..c5f58263ff --- /dev/null +++ b/testing/web-platform/tests/fullscreen/crashtests/backdrop-list-item.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com" /> +<link rel="help" href="https://crbug.com/1371331"> +<style> +dialog::backdrop { + display: list-item; +} +</style> +<dialog></dialog> +<script> +document.querySelector("dialog").showModal(); +</script> diff --git a/testing/web-platform/tests/fullscreen/crashtests/chrome-1312699.html b/testing/web-platform/tests/fullscreen/crashtests/chrome-1312699.html new file mode 100644 index 0000000000..c783b0d9cc --- /dev/null +++ b/testing/web-platform/tests/fullscreen/crashtests/chrome-1312699.html @@ -0,0 +1,21 @@ +<!doctype html> +<html class="reftest-wait"> +<link rel="help" href="https://crbug.com/1312699"> +<script src="/resources/testdriver.js"></script> +<script src="/resources/testdriver-vendor.js"></script> +<video></video> +<script> + async function crash() { + let video = document.querySelector("video"); + await video.requestFullscreen(); + video.width = null; + document.documentElement.classList.remove("reftest-wait"); + } + document.addEventListener("click", () => crash(), false); + + requestAnimationFrame(() => requestAnimationFrame(() => { + test_driver.click(document.body); + })); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/fullscreen/crashtests/content-visibility-crash.html b/testing/web-platform/tests/fullscreen/crashtests/content-visibility-crash.html new file mode 100644 index 0000000000..63111d03e3 --- /dev/null +++ b/testing/web-platform/tests/fullscreen/crashtests/content-visibility-crash.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html class=test-wait> +<link rel=author href="mailto:m.cooolie@gmail.com"> +<link rel=author href="mailto:jarhar@chromium.org"> +<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1338135"> +<script src="/resources/testdriver.js"></script> +<script src="/resources/testdriver-vendor.js"></script> +<body> +<script> +async function crash() { + const col = document.createElement("col"); + document.body.appendChild(col); + + let fullscreenPromise = null; + await test_driver.bless('open fullscreen', () => { + fullscreenPromise = col.requestFullscreen({navigationUI: 'hide'}); + }); + await fullscreenPromise; + + const a = document.createElement("a"); + document.body.appendChild(a); + + document.body.style.all = 'unset'; + document.body.style.contentVisibility = 'hidden'; + + a.offsetParent; + + document.documentElement.classList.remove('test-wait'); +} +crash(); +</script> |