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

Side by Side Diff: LayoutTests/http/tests/security/storage-blocking-loosened-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 if (window.testRunner)
11 internals.settings.setStorageBlockingPolicy('BlockAll');
12
13 function decrement() {
14 if (window.testRunner)
15 internals.settings.setStorageBlockingPolicy('AllowAll');
16 for (var i = 0; i < window.frames.length; ++i)
17 window.frames[i].postMessage('blocked', '*');
18 }
19
20 window.onmessage = function() {
21 if (window.testRunner) {
22 testRunner.notifyDone();
23 }
24 }
25 </script>
26 </head>
27 <body>
28 <p>This iframe should return only one security error:</p>
29 <iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blockin g-changed-local-storage.html" onload="decrement()"></iframe>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698