Skip to content

Commit

Permalink
Call document.close, triggering onload and making the test not time out.
Browse files Browse the repository at this point in the history
This fixes both uses of object-association.js.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1419297
gecko-commit: 2762fef0119bcd3e78d36e78b0b75b5448d35c85
gecko-integration-branch: autoland
gecko-reviewers: smaug
  • Loading branch information
mrbkap authored and moz-wptsync-bot committed Jun 9, 2018
1 parent 88e6a35 commit 4ce3dab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/object-association.js
Expand Up @@ -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 => {
Expand Down Expand Up @@ -56,6 +56,8 @@ window.testIsPerWindow = propertyName => {

const after = frame[propertyName];
assert_not_equals(after, before);

frame.document.close();
});

iframe.src = "/common/blank.html";
Expand Down

0 comments on commit 4ce3dab

Please sign in to comment.