Add test for unblocking onload when removing an iframe from the tree.

This commit is contained in:
Josh Matthews 2015-09-02 23:44:55 -04:00
parent e9b98ad5fa
commit fbae86281d
2 changed files with 24 additions and 0 deletions

View file

@ -5850,6 +5850,12 @@
"url": "/_mozilla/mozilla/htmlspacechars.html"
}
],
"mozilla/iframe-unblock-onload.html": [
{
"path": "mozilla/iframe-unblock-onload.html",
"url": "/_mozilla/mozilla/iframe-unblock-onload.html"
}
],
"mozilla/iframe_contentDocument.html": [
{
"path": "mozilla/iframe_contentDocument.html",

View file

@ -0,0 +1,18 @@
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<iframe src="resources/iframe_contentDocument_inner.html?pipe=trickle(d20)"></iframe>
<script>
async_test(function(t) {
window.addEventListener('load', t.step_func(function() {
t.done();
}, false));
document.querySelector('iframe').remove();
}, "Document load is unblocked by iframe removal");
</script>
</body>
</html>