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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/websocket/iframe-sandbox.html

Issue 2706013002: Added support for self.origin in Window and WorkerGlobalScope (Closed)
Patch Set: rebase-update after manifest.json changes Created 3 years, 9 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script> 2 <script src="/js-test-resources/js-test.js"></script>
3 <script> 3 <script>
4 description("WebSocket test that Origin is 'null' in a sandboxed iframe."); 4 description("WebSocket test that Origin is 'null' in a sandboxed iframe.");
5 5
6 window.jsTestIsAsync = true; 6 window.jsTestIsAsync = true;
7 7
8 window.addEventListener("message", receiveMessage, false); 8 window.addEventListener("message", receiveMessage, false);
9 9
10 var origin; 10 var wsOrigin;
11 11
12 function receiveMessage(event) 12 function receiveMessage(event)
13 { 13 {
14 origin = event.data; 14 wsOrigin = event.data;
15 shouldBeEqualToString("origin", "null"); 15 shouldBeEqualToString("wsOrigin", "null");
16 finishJSTest(); 16 finishJSTest();
17 } 17 }
18 </script> 18 </script>
19 <iframe sandbox="allow-scripts" src="resources/iframe-sandbox-iframe.html"> 19 <iframe sandbox="allow-scripts" src="resources/iframe-sandbox-iframe.html">
20 </iframe> 20 </iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698