Disallow loading webarchives as iframes
[WebKit-https.git] / LayoutTests / webarchive / loading / cache-expired-subresource.html
1 <html>
2 <script>
3     if (window.testRunner) {
4         testRunner.dumpResourceLoadCallbacks();
5         testRunner.waitUntilDone();
6     }
7     if (window.internals)
8         internals.setAlwaysAllowLocalWebarchive();
9     
10     function frameLoaded() {
11         if (window.testRunner)
12             testRunner.notifyDone();
13     }
14 </script>
15 <body>
16 <iframe onload="frameLoaded();" src="resources/cache-expired-subresource.webarchive"></iframe><br>
17 This tests that loading a webarchive with a subresource that has an expired cache header does not attempt to hit the network for resource, and actually uses the archived data
18 </body>
19 </html>