content/html/document/crashtests/601422.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 <script>
     6 function boom()
     7 {
     8   var frame = document.getElementById("f");
     9   var frameDoc = frame.contentDocument;
    10   document.body.removeChild(frame);
    11   try { frameDoc.shrinkToFit(); }catch(e){}
    12   try { frameDoc.restoreImageTo(1,1); }catch(e){}
    13   try { frameDoc.restoreImage(); }catch(e){}
    14   try { frameDoc.toggleImageSize(); }catch(e){}
    15 }
    17 </script>
    18 </head>
    20 <body onload="boom();">
    21 <iframe id="f" src="data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs="></iframe>
    22 </body>
    23 </html>

mercurial