browser/devtools/webconsole/test/test-bug-859170-longstring-hang.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <!DOCTYPE html>
     2 <html lang="en">
     3   <head><meta charset="utf-8">
     4     <title>Web Console test for bug 859170 - very long strings hang the browser</title>
     5     <!-- Any copyright is dedicated to the Public Domain.
     6          http://creativecommons.org/publicdomain/zero/1.0/ -->
     7 <script type="application/javascript">
     8 (function() {
     9 var longString = "abbababazomglolztest";
    10 for (var i = 0; i < 10; i++) {
    11   longString += longString + longString;
    12 }
    14 longString = "foobar" + (new Array(9000)).join("a") + "foobaz" +
    15              longString + "boom!";
    16 console.log(longString);
    17 })();
    18 </script>
    19   </head>
    20   <body>
    21     <p>Web Console test for bug 859170 - very long strings hang the browser.</p>
    22   </body>
    23 </html>

mercurial