Bug 1419297 - Call document.close, triggering onload and making the test not time out. r=smaug

This fixes both uses of object-association.js.

MozReview-Commit-ID: 8Fj7dC1c3U2

--HG--
extra : rebase_source : 8f9946f5f2ed9e5b083aa000f1430441dc36d50e
This commit is contained in:
Blake Kaplan 2018-06-07 16:48:51 -07:00
parent 50ef419773
commit a93d4ae65f
4 changed files with 4 additions and 5 deletions

View File

@ -412959,7 +412959,7 @@
"support"
],
"common/object-association.js": [
"c6955b7bbf00d73ec5959678391aa59d36da8321",
"759706842deec7ed3b59c66fab89209bd93cc561",
"support"
],
"common/object-association.js.headers": [

View File

@ -1,5 +1,4 @@
[per-global.html]
expected: TIMEOUT
[Discarding the browsing context must not change window.customElements]
expected: FAIL

View File

@ -1,2 +0,0 @@
[per-global.window.html]
expected: TIMEOUT

View File

@ -14,7 +14,7 @@ window.testIsPerWindow = propertyName => {
iframe.remove();
const after = frame[propertyName];
assert_equals(after, before);
assert_equals(after, before, `window.${propertyName} should not change after iframe.remove()`);
}, `Discarding the browsing context must not change window.${propertyName}`);
async_test(t => {
@ -56,6 +56,8 @@ window.testIsPerWindow = propertyName => {
const after = frame[propertyName];
assert_not_equals(after, before);
frame.document.close();
});
iframe.src = "/common/blank.html";