layout/style/crashtests/long-url-list-stack-overflow.html

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:0c78ad62f29e
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style id="s"></style>
5 <script type="text/javascript">
6
7 // Duplicates the string 2^n times
8 function exp(s, n)
9 {
10 for (var i = 0; i < n; ++i)
11 s += s;
12 return s;
13 }
14
15 var stylesheet = "@-moz-document url(http://www.w3.org/)" + exp(", url-prefix(file:///)", 20) + " { }";
16 document.getElementById("s").textContent = stylesheet;
17
18 </script>
19 </head>
20 <body>
21 <div></div>
22 </body>
23 </html>

mercurial