Do not fire load events from frames with scripting disabled
[WebKit-https.git] / LayoutTests / fast / images / image-load-event-crash.html
1 <!DOCTYPE html>
2 <head>
3 <style>
4 img {
5     background-image: url("data:image/svg+xml,<svg></svg>");
6 }
7 </style>
8 <script>
9 function changeStyleAndLayout() {
10     document.body.style.height = '100px';
11     var forceLayout = document.body.offsetWidth;
12     if (window.testRunner)
13         testRunner.dumpAsText();
14 }
15 </script>
16 </head>
17 <body>
18     PASS. WebKit didn't crash.<br/>
19     <img onload="changeStyleAndLayout()" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==">
20 </body>
21 </html>
22