layout/xul/tree/crashtests/391178-1.xhtml

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 xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     2 <head>
     3 <script>
     5 var ccc;
     7 function boom()
     8 {
     9   var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    11   var hbox = document.createElementNS(XUL_NS, 'hbox');
    12   var tree = document.createElementNS(XUL_NS, 'tree');
    13   var treecol = document.createElementNS(XUL_NS, 'treecol');
    15   ccc = document.getElementById("ccc");
    17   ccc.style.position = "fixed";
    19   hbox.appendChild(treecol);
    20   tree.appendChild(hbox);
    21   ccc.appendChild(tree);
    23   setTimeout(boom2, 200);
    24 }
    26 function boom2()
    27 {
    28   ccc.style.position = "";
    29   document.documentElement.removeAttribute("class");
    30 }
    32 </script>
    33 </head>
    35 <body onload="boom();">
    37 <div id="ccc">
    38 </div>
    40 </body>
    41 </html>

mercurial