Skip to content

Commit

Permalink
HTML: window.document and discarded browsing contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 13, 2019
1 parent 1a896b5 commit 1c31e42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions html/browsers/the-window-object/document-attribute.window.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
async_test(t => {
const frame = document.createElement("iframe");
frame.onload = t.step_func(() => {
const frameW = frame.contentWindow,
frameD = frame.contentDocument;
assert_equals(frameW.document, frameD);
frame.remove();
assert_equals(frameW.document, frameD);
t.step_timeout(() => {
assert_equals(frameW.document, frameD);
t.done();
}, 100);
});
document.body.append(frame);
}, "Window object's document IDL attribute and discarding the browsing context");

0 comments on commit 1c31e42

Please sign in to comment.