Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: LayoutTests/http/tests/navigation/back-to-dynamic-iframe.html

Issue 296533004: Fix incorrect iframe loading during back/forward navigation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/back-to-dynamic-iframe-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigation/back-to-dynamic-iframe.html
diff --git a/LayoutTests/http/tests/navigation/back-to-dynamic-iframe.html b/LayoutTests/http/tests/navigation/back-to-dynamic-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..5511fe565db13719f110fa1c67ed1fda97ceae72
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/back-to-dynamic-iframe.html
@@ -0,0 +1,34 @@
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.dumpBackForwardList();
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function childLoaded() {
+ if (window.sessionStorage.getItem("dynamic-iframe") != null) {
+ setTimeout(function() {
+ location.assign("resources/go-back.html");
+ }, 0);
+ } else {
+ setTimeout(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+ }
+}
+
+var i = document.createElement("iframe");
+i.src = "javascript:false";
+document.body.appendChild(i);
+
+if (window.sessionStorage.getItem("dynamic-iframe") == null) {
+ window.sessionStorage.setItem("dynamic-iframe", true);
+ i.src = "resources/back-to-dynamic-iframe-iframe.html#FAIL";
+} else {
+ window.sessionStorage.removeItem("dynamic-iframe");
+ i.src = "resources/back-to-dynamic-iframe-iframe.html#PASS";
+}
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/back-to-dynamic-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698