content/xul/document/crashtests/428951-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" xmlns:mathml="http://www.w3.org/1998/Math/MathML">
     2 <box>
     3   <box style="background: initial;" id="f">
     4     <box style="margin-top: -9999999px;"/>
     5   </box>
     6   <mathml:divergence>
     7     <box/>
     8   </mathml:divergence>
     9   <mathml:moment command="f"/>
    10 </box>
    12 <script id="script" xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
    13 function init() {
    14     var f = document.getElementsByTagName('mathml:divergence')[0];
    15     window.addEventListener('DOMAttrModified',function() { f.parentNode.removeChild(f);}, true);
    16     var x=document.getElementsByTagName('mathml:moment')[0];
    17     x.parentNode.removeChild(x);
    18 }
    19 window.addEventListener("load", init, false);
    20 ]]></script>
    21 </window>

mercurial