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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-method-with-iframe-proto.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/js-test-resources/js-test-pre.js"></script> 3 <script src="/js-test-resources/js-test-pre.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <iframe src="http://localhost:8000/" style=""></iframe> 6 <iframe src="http://localhost:8000/" style=""></iframe>
7 <pre id="console"></pre> 7 <pre id="console"></pre>
8 <script> 8 <script>
9 window.jsTestIsAsync = true; 9 window.jsTestIsAsync = true;
10 10
(...skipping 16 matching lines...) Expand all
27 window.onload = function() { 27 window.onload = function() {
28 __proto__ = targetWindow; 28 __proto__ = targetWindow;
29 29
30 shouldThrow('targetWindow.setTimeout(callback, 0, this);', '"SecurityError : Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross -origin frame."'); 30 shouldThrow('targetWindow.setTimeout(callback, 0, this);', '"SecurityError : Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross -origin frame."');
31 shouldThrow('setTimeout.call(targetWindow, callback, 0, this);', '"Securit yError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross-origin frame."'); 31 shouldThrow('setTimeout.call(targetWindow, callback, 0, this);', '"Securit yError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross-origin frame."');
32 shouldThrow('originalSetTimeout.call(targetWindow, callback, 0, this);', ' "SecurityError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from acc essing a cross-origin frame."'); 32 shouldThrow('originalSetTimeout.call(targetWindow, callback, 0, this);', ' "SecurityError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from acc essing a cross-origin frame."');
33 33
34 originalSetTimeout(check, 10); 34 originalSetTimeout(check, 10);
35 } 35 }
36 </script> 36 </script>
37 <script src="/js-test-resources/js-test-post.js"></script>
38 </body> 37 </body>
39 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698