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

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: updates 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>Check that the session storage namespace is correct</title>
awong 2013/07/31 20:21:42 is accessible is maybe better?
Charlie Reis 2013/08/01 18:13:34 Not accessible, right? The test below is making s
jochen (gone - plz use gerrit) 2013/08/01 19:48:51 Done.
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="console"></div> 7 <div id="console"></div>
8 <script> 8 <script>
9 var log = document.querySelector("#console"); 9 var log = document.querySelector("#console");
10 var result; 10 var result;
11 if (window.locationbar.visible) 11 if (sessionStorage.getItem("key") == "set")
12 result = "FAIL: window features not set"; 12 result = "FAIL: popup can access session storage namespace";
13 else 13 else
14 result = "PASS"; 14 result = "PASS";
15 log.innerText = result; 15 log.innerText = result;
16 document.title = result; 16 document.title = result;
17 </script> 17 </script>
18 </body> 18 </body>
19 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698