dom/xbl/crashtests/415192-1.xul

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 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin/global.css"?>
     3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
     4 <script type="text/javascript">
     6 function boom()
     7 {
     8   var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    10   var wizard = document.createElementNS(XUL_NS, "wizard");
    11   var space = document.createTextNode(" ");
    12   var hbox = document.createElementNS(XUL_NS, "hbox");
    13   hbox.setAttribute("anonid", "Buttons");
    15   document.documentElement.appendChild(wizard);
    16   wizard.appendChild(space);
    17   wizard.appendChild(hbox);
    18   wizard.cloneNode(true);
    19 }
    21 </script>
    22 </window>

mercurial