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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/popup_blocker/check-sessionstorage.html
diff --git a/chrome/test/data/popup_blocker/check-windowfeatures.html b/chrome/test/data/popup_blocker/check-sessionstorage.html
similarity index 54%
copy from chrome/test/data/popup_blocker/check-windowfeatures.html
copy to chrome/test/data/popup_blocker/check-sessionstorage.html
index 901ce081aa02e67325474829ae1533837e59fe2d..826642417da86a677078ea673701feb3208af3ee 100644
--- a/chrome/test/data/popup_blocker/check-windowfeatures.html
+++ b/chrome/test/data/popup_blocker/check-sessionstorage.html
@@ -1,15 +1,17 @@
<!DOCTYPE html>
<html>
<head>
-<title>Check that window features are set</title>
+<title>
+ Check that the session storage namespace of the parent is not accessible
+</title>
</head>
<body>
<div id="console"></div>
<script>
var log = document.querySelector("#console");
var result;
- if (window.locationbar.visible)
- result = "FAIL: window features not set";
+ if (sessionStorage.getItem("key") == "set")
+ result = "FAIL: popup can access session storage namespace";
else
result = "PASS";
log.innerText = result;
« no previous file with comments | « chrome/test/data/popup_blocker/check-openersuppressed.html ('k') | chrome/test/data/popup_blocker/popup-opener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698