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

Side by Side Diff: LayoutTests/http/tests/security/storage-blocking-strengthened-shared-worker.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 window.onmessage = function() {
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 window.onmessage = function() {
17 if (window.testRunner) {
18 internals.settings.setStorageBlockingPolicy('AllowAll');
19 testRunner.notifyDone();
20 }
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-shared-worker.html"></iframe>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698