layout/xul/tree/crashtests/409807-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 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
     3 <script type="text/javascript">
     5 function boom()
     6 {
     7   var tree = document.getElementById("tree");
     8   var tc = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treechildren");
    10   document.addEventListener("DOMAttrModified", m, false);
    12   tree.appendChild(tc);
    14   function m()
    15   {
    16     document.removeEventListener("DOMAttrModified", m, false);
    17     tree.removeChild(tc);
    18   }
    19 }
    21 </script>
    23 <tree id="tree" />
    25 </window>

mercurial