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

@ -274059,6 +274059,11 @@
{}
]
],
"html/browsers/history/joint-session-history/joint-session-history-filler.html": [
[
{}
]
],
"html/browsers/history/joint-session-history/joint-session-history-grandchild1.html": [
[
{}
@ -327276,6 +327281,12 @@
{}
]
],
"html/browsers/history/joint-session-history/joint-session-history-remove-iframe.html": [
[
"/html/browsers/history/joint-session-history/joint-session-history-remove-iframe.html",
{}
]
],
"html/browsers/history/the-history-interface/001.html": [
[
"/html/browsers/history/the-history-interface/001.html",
@ -554639,6 +554650,10 @@
"c8309aa28105f557d99d7a36e86df977bfe003e9",
"support"
],
"html/browsers/history/joint-session-history/joint-session-history-filler.html": [
"54568c8fe456d139e05620c0639a4e60765c8f90",
"support"
],
"html/browsers/history/joint-session-history/joint-session-history-grandchild1.html": [
"c4b5d65cf89e66fc6df209c7166ff56dd66bcf16",
"support"
@ -554651,6 +554666,10 @@
"e5087c8e51160b36134efab21ed2fbc200a9697d",
"testharness"
],
"html/browsers/history/joint-session-history/joint-session-history-remove-iframe.html": [
"2ff693526c5637a11658831961c9ff0a738329de",
"testharness"
],
"html/browsers/history/the-history-interface/.gitkeep": [
"da39a3ee5e6b4b0d3255bfef95601890afd80709",
"support"

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>