docshell/test/browser/file_bug670318.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 <html><head>
     2 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     3 <script>
     4 function load() {
     5   function next() {
     6     if (count < 5)
     7       iframe.src = 'data:text/html,iframe ' + (++count);
     8   }
    10   var count = 0;
    11   var iframe = document.createElement('iframe');
    12   iframe.onload = function () { setTimeout(next, 0) };
    13   document.body.appendChild(iframe);
    15   setTimeout(next, 0);
    16 }
    17 </script>
    18 </head>
    20 <body onload="load()">
    21 Testcase
    22 </body>
    23 </html>

mercurial