dom/xbl/test/file_bug591198_inner.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       #b {
     6         -moz-binding: url("file_bug591198_xbl.xml#xbltest");
     7       }
     8       span {
     9         white-space: nowrap;
    10       }
    11     </style>
    12     <script>
    13 function sendResults() {
    14   var res = {
    15     widths: []
    16   };
    18   ps = document.getElementsByTagName('span');
    19   for (var i = 0; i < ps.length; i++) {
    20     res.widths.push(ps[i].offsetWidth);
    21   }
    23   try {
    24     res.anonChildCount =
    25       SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('b')).length;
    26   }
    27   catch (ex) {}
    29   parent.postMessage(JSON.stringify(res), "*");
    30 }
    31     </script>
    32   </head>
    33   <body onload="sendResults();">
    34     <div><span id=b>long long text here</span></div>
    35     <div><span>long long text here</span></div>
    36     <div><span>PASS</span></div>
    37   </body>
    38 </html>

mercurial