mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
50ef419773
commit
a93d4ae65f
@ -412959,7 +412959,7 @@
|
||||
"support"
|
||||
],
|
||||
"common/object-association.js": [
|
||||
"c6955b7bbf00d73ec5959678391aa59d36da8321",
|
||||
"759706842deec7ed3b59c66fab89209bd93cc561",
|
||||
"support"
|
||||
],
|
||||
"common/object-association.js.headers": [
|
||||
|
@ -1,5 +1,4 @@
|
||||
[per-global.html]
|
||||
expected: TIMEOUT
|
||||
[Discarding the browsing context must not change window.customElements]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
[per-global.window.html]
|
||||
expected: TIMEOUT
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user