diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/generic/crashtests/309322-4.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/generic/crashtests/309322-4.html')
-rw-r--r-- | layout/generic/crashtests/309322-4.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/layout/generic/crashtests/309322-4.html b/layout/generic/crashtests/309322-4.html new file mode 100644 index 0000000000..9b9b6a5bbf --- /dev/null +++ b/layout/generic/crashtests/309322-4.html @@ -0,0 +1,48 @@ +<html><head> +<title>Testcase4 bug 309322 - Evil testcase using multiple display:table-caption causes crash</title> +<style> +*[toggle_style],*[toggle_style1],*[toggle_style2],*[toggle_style3],*[toggle_style4]{ +display:table-caption; +} +</style> +<script> +function doe(i){ +var x=document.body.getElementsByTagName('*'); +var xl=x.length;i=i+1; +x[i-1].removeAttribute('toggle_style'); +x[i].setAttribute('toggle_style','toggle_style'); +if ((i+1)<xl) {x[i+1].setAttribute('toggle_style1','toggle_style'); +x[i].removeAttribute('toggle_style1'); +} +if ((i+2)<xl) {x[i+2].setAttribute('toggle_style2','toggle_style'); +x[i+1].removeAttribute('toggle_style2'); +} +if ((i+3)<xl) {x[i+3].setAttribute('toggle_style3','toggle_style'); +x[i+2].removeAttribute('toggle_style3'); +} +if ((i+4)<xl) {x[i+4].setAttribute('toggle_style4','toggle_style'); +x[i+3].removeAttribute('toggle_style4'); +} +if ((i+4)==xl) { +x[i+3].removeAttribute('toggle_style4'); +} +if ((i+3)==xl) { +x[i+2].removeAttribute('toggle_style3'); +} +if ((i+2)==xl) { +x[i+1].removeAttribute('toggle_style2'); +} +if ((i+1)==xl) { +x[i].removeAttribute('toggle_style1'); +} +setTimeout(doe,20,i); +} + + +</script></head><body onload="doe(3)"> +<button onclick="doe(3)">Clicking on this button and then closing this tab/window should not crash Mozilla</button> +<table><tbody><tr><td> +<span><br></span> +<a href="#"><img src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="></a> +</td></tr></tbody></table> +</body></html> |