js/xpconnect/crashtests/754311-iframe.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 type="application/javascript">
     5 function boom() {
     6   // Don't crash when transplanting wrappers with cyclic references.
     7   document.documentElement.dataset.xml = document.documentElement.dataset;
     8   document.open();
    10   // Tell the parent window that we're done.
    11   window.parent.allDone();
    12 }
    14 // This needs to do a round-trip through the event loop to work right.
    15 window.onload = function() { setTimeout(boom, 0); };
    17 </script>
    18 </head>
    19 <body>
    20 </body>
    21 </html>

mercurial