diff options
Diffstat (limited to 'layout/style/crashtests/long-url-list-stack-overflow.html')
-rw-r--r-- | layout/style/crashtests/long-url-list-stack-overflow.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layout/style/crashtests/long-url-list-stack-overflow.html b/layout/style/crashtests/long-url-list-stack-overflow.html new file mode 100644 index 0000000000..899e858df5 --- /dev/null +++ b/layout/style/crashtests/long-url-list-stack-overflow.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<style id="s"></style> +<script type="text/javascript"> + +// Duplicates the string 2^n times +function exp(s, n) +{ + for (var i = 0; i < n; ++i) + s += s; + return s; +} + +var stylesheet = "@-moz-document url(http://www.w3.org/)" + exp(", url-prefix(file:///)", 20) + " { }"; +document.getElementById("s").textContent = stylesheet; + +</script> +</head> +<body> +<div></div> +</body> +</html> |