diff options
Diffstat (limited to 'dom/html/crashtests/1230110.html')
-rw-r--r-- | dom/html/crashtests/1230110.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dom/html/crashtests/1230110.html b/dom/html/crashtests/1230110.html new file mode 100644 index 0000000000..4654641874 --- /dev/null +++ b/dom/html/crashtests/1230110.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<script> +// This test case should not leak. +function leak() +{ + var img = document.createElement("img"); + var iframe = document.createElement("iframe"); + img.appendChild(iframe); + document.body.appendChild(img); + + document.addEventListener('Foo', function(){}); +} +</script> +</head> +<body onload="leak();"></body> +</html> |