Files
tubestation/docshell/test/navigation/file_bug1745638.html
Olli Pettay f71572e725 Bug 1745638, allow stopping session history load to an iframe, r=peterv
The previous version had two issues:
It revealed an issue in the old implementation which causes an assertion to fire.
There was also a problem with mDocumentRequest, so the new approach tries to be less clever
and just adds a new boolean member variable mCheckingSessionHistory,
which GetIsAttemptingToNavigate() then uses.

Differential Revision: https://phabricator.services.mozilla.com/D136041
2022-02-01 18:59:05 +00:00

16 lines
390 B
HTML

<!DOCTYPE html>
<script>
function go() {
var doc = document.getElementById("testFrame").contentWindow.document;
doc.open();
doc.close();
doc.body.innerText = "passed";
}
</script>
<body onload="setTimeout(opener.pageLoaded);">
The iframe below should not be blank after a reload.<br>
<iframe src="about:blank" id="testFrame"></iframe>
<script>
go();
</script>