Merge "[WK2] Revert patch / set a limit of layer count and atlas size." into 2.0_beta
[framework/web/webkit-efl.git] / LayoutTests / security / autocomplete-cleared-on-back.html
1 <html>
2 <head>
3 <script>
4
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.waitUntilDone();
8 }
9
10 function log(message)
11 {
12     var txt = document.createTextNode(message);
13     document.getElementById("logger").appendChild(txt);
14     document.getElementById("logger").appendChild(document.createElement('br'));
15 }
16
17 function runTest()
18 {
19     if (!sessionStorage.secondPageReached) {
20         document.getElementById("firstInput").value = "SuperSeekritValue";
21         document.getElementById("secondInput").value = "SuperSeekritValue";
22         // Location changes need to happen outside the onload handler to generate history entries.
23         setTimeout(function() {window.location = "resources/autocomplete-cleared-on-back2.html";}, 0);
24         return;
25     }
26     
27     sessionStorage.removeItem("secondPageReached");
28     
29     log("Input value 1 - " + document.getElementById("firstInput").value);
30     log("Input value 2 - " + document.getElementById("secondInput").value);
31     
32     if (window.layoutTestController)
33         layoutTestController.notifyDone();
34 }
35
36 </script>
37 </head>
38 <body onload="runTest();">
39 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.
40 <form autocomplete="off">
41 <input type="text" id="firstInput"/>
42 </form>
43 <form>
44 <input autocomplete="off" id="secondInput"/>
45 </form>
46 <div id="logger"></div>
47 </body>
48 </html>