dom/xbl/test/file_bug379959_cross.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4 <style>
     5 #div1 {
     6   color: green;
     7   -moz-binding: url(file_bug379959_xbl.xml#xbltest);
     8 }
     9 #div2 {
    10   color: green;
    11   -moz-binding: url(http://example.com/tests/dom/xbl/test/file_bug379959_xbl.xml#xbltest);
    12 }
    13 </style>
    14 <body>
    15 <div id="div1"></div>
    16 <div id="div2"></div>
    17 <script>
    18 onload = function() {
    19   nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div1'));
    20   parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    21   nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div2'));
    22   parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    23 }
    24 </script>
    25 </html>

mercurial