Disallow loading webarchives as iframes
[WebKit-https.git] / LayoutTests / webarchive / loading / mainresource-null-mimetype-crash.html
1 <html>
2 <script>
3     if (window.testRunner) {
4         testRunner.dumpAsText();
5         testRunner.waitUntilDone();
6     }
7     if (window.internals)
8         internals.setAlwaysAllowLocalWebarchive();
9     onload = function() {
10         frame = document.createElement("iframe");
11         frame.src = "resources/mainresource-null-mimetype.webarchive";
12         frame.onload = function() {
13             if (window.testRunner)
14                 testRunner.notifyDone();
15         }
16         document.body.appendChild(frame);
17     }
18 </script>
19 </html>