Remove entries for removed iframes

Notify history changed after a navigation

Add history drop test
This commit is contained in:
Connor Brewster 2018-04-06 21:20:14 -05:00
parent ae117be752
commit 787ec4b209
5 changed files with 64 additions and 4 deletions

View file

@ -0,0 +1,23 @@
<!doctype html>
<meta charset="utf-8">
<title>Joint session history length does not include entries from a removed iframe.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<iframe id="frame" src="about:blank"></iframe>
<script>
async_test(function(t) {
t.step_timeout(() => {
var child = document.getElementById("frame");
var old_history_len = history.length;
child.onload = () => {
assert_equals(old_history_len + 1, history.length);
document.body.removeChild(document.getElementById("frame"));
assert_equals(old_history_len, history.length);
t.done();
}
child.src = "joint-session-history-filler.html";
}, 1000);
});
</script>
</body>