Files
tubestation/docshell/test/navigation/file_bug1758664.html
Olli Pettay 6578f106a0 Bug 1758664, don't try to recheck possible session history entry in the parent process if we're doing such check already, r=peterv
The code which this patch removes was clearly an oversight in the regressing patch.

Differential Revision: https://phabricator.services.mozilla.com/D140690
2022-03-10 10:19:57 +00:00

33 lines
840 B
HTML

<!DOCTYPE html>
<html>
<head>
<script>
var onIframeOnload = function() {
var iframe = window.document.getElementById('applicationIframe');
opener.is(iframe.contentWindow.location.search, "?iframe", "Should have loaded the iframe");
window.close();
opener.SimpleTest.finish();
}
var onPageOnload = function() {
if (location.search == "?iframe") {
return;
}
if(!window.name) {
window.name = 'file_bug1758664.html';
window.location.reload();
return;
}
var iframe = window.document.getElementById('applicationIframe');
iframe.addEventListener('load', onIframeOnload);
iframe.src = "file_bug1758664.html?iframe";
}
window.document.addEventListener("DOMContentLoaded", onPageOnload);
</script>
</head>
<body>
<iframe id="applicationIframe"></iframe>
</body>
</html>