mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
Remove entries for removed iframes
Notify history changed after a navigation Add history drop test
This commit is contained in:
parent
ae117be752
commit
787ec4b209
5 changed files with 64 additions and 4 deletions
|
@ -0,0 +1 @@
|
|||
<body>Filler</body>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue