Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make nested browsing context navigations check the loaded status of t…
…he active document of the nested browsing context.
- Loading branch information
Showing
8 changed files
with
99 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Traversing history causes iframe contentWindow to update</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<iframe src="resources/first.html"></iframe> | ||
<script> | ||
var iframe = document.querySelector('iframe'); | ||
var t = async_test(); | ||
onload = t.step_func(function() { | ||
iframe.onload = t.step_func(function() { | ||
assert_true(iframe.contentWindow.location.href.endsWith('second.html')); | ||
iframe.contentWindow.history.back(); | ||
t.step_timeout(function() { | ||
assert_true(iframe.contentWindow.location.href.endsWith('first.html')); | ||
iframe.contentWindow.history.forward(); | ||
t.step_timeout(function() { | ||
assert_true(iframe.contentWindow.location.href.endsWith('second.html')); | ||
t.done(); | ||
}, 1000); | ||
}, 1000); | ||
}); | ||
iframe.src = "resources/second.html"; | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<body>hello world</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<body>goodbye world</body> |