OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Check that window features are set</title> | 4 <title> |
| 5 Check that the session storage namespace of the parent is not accessible |
| 6 </title> |
5 </head> | 7 </head> |
6 <body> | 8 <body> |
7 <div id="console"></div> | 9 <div id="console"></div> |
8 <script> | 10 <script> |
9 var log = document.querySelector("#console"); | 11 var log = document.querySelector("#console"); |
10 var result; | 12 var result; |
11 if (window.locationbar.visible) | 13 if (sessionStorage.getItem("key") == "set") |
12 result = "FAIL: window features not set"; | 14 result = "FAIL: popup can access session storage namespace"; |
13 else | 15 else |
14 result = "PASS"; | 16 result = "PASS"; |
15 log.innerText = result; | 17 log.innerText = result; |
16 document.title = result; | 18 document.title = result; |
17 </script> | 19 </script> |
18 </body> | 20 </body> |
19 </html> | 21 </html> |
OLD | NEW |