5 if (window
.layoutTestController
) {
6 layoutTestController
.dumpAsText();
7 layoutTestController
.waitUntilDone();
12 var txt
= document
.createTextNode(message
);
13 document
.getElementById("logger").appendChild(txt
);
14 document
.getElementById("logger").appendChild(document
.createElement('br'));
19 if (!sessionStorage
.secondPageReached
) {
20 document
.getElementById("firstInput").value
= "SuperSeekritValue";
21 document
.getElementById("secondInput").value
= "SuperSeekritValue";
22 window
.location
= "resources/autocomplete-cleared-on-back2.html";
26 sessionStorage
.removeItem("secondPageReached");
28 log("Input value 1 - " + document
.getElementById("firstInput").value
);
29 log("Input value 2 - " + document
.getElementById("secondInput").value
);
31 if (window
.layoutTestController
)
32 layoutTestController
.notifyDone();
37 <body onload=
"runTest();">
38 This tests whether or not form input values that are designated
autocomplete=
"off" retain their values after a navigation away from the page then returning back to it via the back button.
39 <form autocomplete=
"off">
40 <input type=
"text" id=
"firstInput"/>
43 <input autocomplete=
"off" id=
"secondInput"/>
45 <div id=
"logger"></div>