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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php

Issue 2332263002: Updated suborigin serialization to latest spec proposal (Closed)
Patch Set: Actually disable test Created 4 years, 2 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
1 <?php 1 <?php
2 header("Suborigin: foobar"); 2 header("Suborigin: foobar");
3 ?> 3 ?>
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html> 5 <html>
6 <head> 6 <head>
7 </head> 7 </head>
8 <body> 8 <body>
9 <iframe src="http://127.0.0.1:8000/"></iframe> 9 <iframe src="http://127.0.0.1:8000/"></iframe>
10 <script src="/js-test-resources/js-test.js"></script> 10 <script src="/js-test-resources/js-test.js"></script>
11 <script> 11 <script>
12 description("Cross-origin access to 'window.event' should throw a Securi tyError."); 12 description("Cross-origin access to 'window.event' should throw a Securi tyError.");
13 window.jsTestIsAsync = true; 13 window.jsTestIsAsync = true;
14 14
15 var frame = document.querySelector('iframe'); 15 var frame = document.querySelector('iframe');
16 window.onload = function () { 16 window.onload = function () {
17 shouldThrow("frame.contentWindow.event", '"SecurityError: Blocked a frame with origin \\"http://foobar_127.0.0.1:8000\\" from accessing a cross-orig in frame."'); 17 shouldThrow("frame.contentWindow.event", '"SecurityError: Blocked a frame with origin \\"http-so://foobar.127.0.0.1:8000\\" from accessing a cross-o rigin frame."');
18 shouldThrow("frame.contentWindow.event = 1;", '"SecurityError: Block ed a frame with origin \\"http://foobar_127.0.0.1:8000\\" from accessing a cross -origin frame."'); 18 shouldThrow("frame.contentWindow.event = 1;", '"SecurityError: Block ed a frame with origin \\"http-so://foobar.127.0.0.1:8000\\" from accessing a cr oss-origin frame."');
19 finishJSTest(); 19 finishJSTest();
20 }; 20 };
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698