4 https://bugzilla.mozilla.org/show_bug.cgi?id=660404
7 <title>Test for Bug
660404</title>
8 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=660404">Mozilla Bug
660404</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
660404 **/
21 SimpleTest.waitForExplicitFinish();
25 function continueTest() {
26 // Do this async so the load event can finish firing
27 SimpleTest.executeSoon(function() {
28 w.onpagehide = function(ev) {
29 is(ev.persisted, true,
"Should be bfcached when navigating to multipart");
31 w.location.href =
"file_bug660404";
35 function finishTest() {
36 is(w.document.documentElement.textContent,
"opener.finishTest();");
37 is(w.document.documentElement.innerHTML,
"<head><script>opener.finishTest();</"+"script></head>");
42 // Have to open a new window, since there's no bfcache in subframes
43 w
= window
.open("data:text/html,<script>window.onload = function() { opener.continueTest(); }</"+"script>");