| <script src="../../resources/js-test-pre.js"></script> |
| description('This tests that each data URI document has its own unique event loop'); |
| testFailed('This test relies on window.internals'); |
| childFrame = document.createElement('iframe'); |
| document.body.appendChild(childFrame); |
| childFrame.src = `data:text/html,<!DOCTYPE html> |
| <body onload="parent.postMessage(internals.hasSameEventLoopAs(nestedFrame.contentWindow), '*')"> |
| <iframe id="nestedFrame" src="data:text/html,<!DOCTYPE html>">`; |
| window.nestedFrameWithDataURLHasSameEventLoopAsParent = event.data; |
| shouldBeFalse('internals.hasSameEventLoopAs(childFrame.contentWindow)'); |
| shouldBeFalse('nestedFrameWithDataURLHasSameEventLoopAsParent'); |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |