Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chrome/test/data/popup_blocker/check-sessionstorage.html

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698