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

Side by Side Diff: LayoutTests/http/tests/security/storage-blocking-strengthened-local-storage.html

Issue 14089003: Remove storageBlockingPolicy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
(Empty)
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.waitUntilDone();
6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
8 }
9
10 function decrement() {
11 if (window.testRunner)
12 internals.settings.setStorageBlockingPolicy('BlockAll');
13 for (var i = 0; i < window.frames.length; ++i)
14 window.frames[i].postMessage('blocked', '*');
15 }
16
17 window.onmessage = function() {
18 if (window.testRunner) {
19 internals.settings.setStorageBlockingPolicy('AllowAll');
20 testRunner.notifyDone();
21 }
22 }
23 </script>
24 </head>
25 <body>
26 <p>This iframe should return only one security error:</p>
27 <iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blockin g-changed-local-storage.html" onload="decrement()"></iframe>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698