diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /layout/printing | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/printing')
-rw-r--r-- | layout/printing/crashtests/1758199-1.html | 55 | ||||
-rw-r--r-- | layout/printing/crashtests/crashtests.list | 2 |
2 files changed, 2 insertions, 55 deletions
diff --git a/layout/printing/crashtests/1758199-1.html b/layout/printing/crashtests/1758199-1.html index 3f7c9227a4..67ee0a73a2 100644 --- a/layout/printing/crashtests/1758199-1.html +++ b/layout/printing/crashtests/1758199-1.html @@ -1,54 +1 @@ -<html class="reftest-wait"> -<script> -let pp; -let documentElements = []; -documentElements.push(document.documentElement); - -window.onload = () => { - documentElements.push(document.documentElement); - - let o = document.getElementById('a') - o.parentNode.appendChild(o) - pp = SpecialPowers.wrap(self).printPreview(); - pp?.print() - window.requestIdleCallback(() => { - documentElements.push(document.documentElement); - - document.write(''); - - setTimeout(finish, 100); - }); -} - -function finish() { - - // The printPreview call above actually opens two print preview windows - // because the <embed src='#'> below causes a second one to open. At least - // we close the one window we can access, not sure if there is a way to get - // ahold of the other window to close it. So this test leaves a window open - // after it finishes. - try { pp.close(); } catch (e) {} - - if (document.documentElement) { - try { document.documentElement.className = ""; } catch (e) {} - } - - // The documentElement that the reftest harness looks at to determine if the - // test is done is not what document.documentElement points to when this code - // is run. So we save all the document.documentElement's we encounter while - // running this test and clear all of their class names. - for (let de of documentElements) { - if (de) { - try { - de.className = ""; - } catch (e) {} - } - } -} -</script> -<style> -:first-of-type { padding-block-start: 99% } -</style> -<mark id='a'> -<embed src='#'> -</html> +<!-- file is now located at testing/crashtest/final/dom/base/crashtests/1758199-1.html --> diff --git a/layout/printing/crashtests/crashtests.list b/layout/printing/crashtests/crashtests.list index e2c57b282c..ec64509ddb 100644 --- a/layout/printing/crashtests/crashtests.list +++ b/layout/printing/crashtests/crashtests.list @@ -6,7 +6,7 @@ skip-if(Android) load 1662259.html skip-if(Android) pref(dom.window.sizeToContent.enabled,true) load 1663722.html skip-if(Android) load 1671503.html load 1748277.html # Bug 1751260 -skip-if(Android) load 1758199-1.html # printPreview doesn't work on android +# load 1758199-1.html # this test is run at the very end in testing/crashtest/final/crashtests.list load 1804571.html load 1804798.html load 1804794.html |