js/xpconnect/tests/mochitest/bug589028_helper.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 <html>
     2     <head>
     3         <script>
     4         function getMyOption() {
     5             return new Option();
     6         }
     7         function getCallersOption(caller) {
     8             return new caller.Option();
     9         }
    10         function getMyAudio() {
    11             return new Audio();
    12         }
    13         function getCallersAudio(caller) {
    14             return new caller.Audio();
    15         }
    16         function getMyImage() {
    17             return new Image();
    18         }
    19         function getCallersImage(caller) {
    20             return new caller.Image();
    21         }
    22         </script>
    23     </head>
    24     <body>
    25         the iframe
    26     </body>
    27 </html>

mercurial