dom/xbl/crashtests/493123-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>
     4 <bindings xmlns="http://www.mozilla.org/xbl">
     5   <binding id="a"><content></content></binding>
     6   <binding id="b"><content><style xmlns="http://www.w3.org/1999/xhtml" style="display: none;">* { overflow: hidden; }</style><children xmlns="http://www.mozilla.org/xbl"/></content></binding>
     7 </bindings>
     9 <script type="text/javascript" style="display: none">
    11 function one()
    12 {
    13   while (document.documentElement.firstChild) document.documentElement.removeChild(document.documentElement.firstChild)
    14   document.documentElement.style.MozBinding = 'url("#a")';
    15   setTimeout(two, 1);
    16 }
    18 function two()
    19 {
    20   document.documentElement.style.MozBinding = 'url("#b")';
    21   setTimeout(three, 1);
    22 }
    24 function three()
    25 {
    26   document.documentElement.style.MozBinding = 'url("#a")';
    27   document.documentElement.removeAttribute("class");
    28 }
    30 </script>
    31 </head>
    33 <body onload="one();"></body>
    34 </html>

mercurial