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

Side by Side Diff: LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed.html

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address many of mkwst's comments Created 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Multiple Suborigins Disallowed</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8
9 <script>
10
11 window.onmessage = function() {
12 var secret = '';
13 try {
14 secret = iframe.contentWindow.secret;
15 assert_unreached();
16 } catch(e) {
17 assert_equals(secret, "", "The parent frame should never be able to get the secret value from the child iframe.");
18 done();
19 };
20 };
21
22 </script>
23 <iframe id="iframe" src="resources/multiple-suborigins.php"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698