dom/xbl/crashtests/415301-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"?>
     4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     5         xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     6         onload="boom();">
     9 <bindings xmlns="http://www.mozilla.org/xbl">
    11 <binding id="chil"><content><children/></content></binding>
    13 <binding id="ichil"><content>
    14 <xul:hbox style="-moz-binding: url(#chil)"><children/></xul:hbox>
    15 </content></binding>
    17 </bindings>
    20 <script type="text/javascript">
    22 function boom()
    23 {
    24   document.getElementById("inner").removeChild(document.getElementById("lbb"));
    25   document.getElementById("outer").style.MozBinding = "";
    26 }
    28 </script>
    31 <hbox id="outer" style="-moz-binding: url(#chil)"><hbox id="inner" style="-moz-binding: url(#ichil)"><listboxbody id="lbb" /></hbox></hbox>
    34 </window>

mercurial