forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1090918 - Multiple History items when visiting links and using 'B…
…ack', r=bz --HG-- extra : rebase_source : ce5b34fff505a4dc0d98b8cc384e84d33bc0aed1
- Loading branch information
Olli Pettay
authored and
Olli Pettay
committed
Nov 13, 2014
1 parent
a56c861
commit 65ad793
Showing
7 changed files
with
93 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<html> | ||
<head> | ||
<script> | ||
function nestedIframeLoaded() { | ||
var tf = document.getElementById("testframe"); | ||
var innerf = tf.contentDocument.getElementsByTagName("iframe")[0]; | ||
if (innerf.contentDocument.documentURI.indexOf("frame0") < 0) { | ||
innerf.contentWindow.location.href = "http://mochi.test:8888/tests/docshell/test/navigation/frame0.html"; | ||
return; | ||
} | ||
innerf.onload = null; | ||
innerf.src = "about:blank"; | ||
var d = innerf.contentDocument; | ||
d.open(); | ||
d.write("test"); | ||
d.close(); | ||
opener.is(window.history.length, 1, "Unexpected history length"); | ||
opener.nextTest(); | ||
window.close(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<iframe id="testframe" src="data:text/html,<iframe onload='parent.nestedIframeLoaded();'></iframe>" onload="frameLoaded()"></iframe> | ||
<script> | ||
</script> | ||
</body> | ||
</html> |
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