Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / isolatedWorld / context-destroy.html
blob6a6e69885d6ffb17bcb820acbb2f17aa97bdfdc1
1 <!DOCTYPE html>
2 <p>FAIL</p>
3 <iframe src="data:text/html,FAIL"></iframe>
4 <script type="text/x-isolate" id="s1">
6 window.onunload = function() {
7 Window;
8 };
10 </script>
11 <script>
13 window.onload = function() {
14 if (window.testRunner) {
15 testRunner.waitUntilDone();
16 testRunner.dumpAsText();
18 var iframeElement = document.querySelector('iframe');
19 iframeElement.focus();
20 testRunner.evaluateScriptInIsolatedWorld(1, document.querySelector('#s1').textContent);
22 iframeElement.onload = function() {
23 document.body.textContent = 'PASS';
24 testRunner.notifyDone();
26 iframeElement.src = 'data:text/html,PASS';
30 </script>
31 </body>
32 </html>