Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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>