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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-parent-isolated-world.html

Issue 1327263002: Modifies WindowProxy::setSecurityToken so that the frame's SecurityOrigin is taken into account whe… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Created 5 years, 3 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 <script src="/js-test-resources/js-test.js"></script>
4 <body>
5 <p id="description"></p>
6 <p id="console"></p>
7 <iframe src="data:text/html,"></iframe>
8 <script>
9 description('Tests that isolated worlds do not allow cross-origin frame access') ;
10 window.jsTestIsAsync = true;
11
12 if (window.testRunner) {
13 window.addEventListener('message', function(event) {
14 var message = JSON.parse(event.data);
15 switch (message.type) {
16 case 'debug':
17 debug(message.message);
18 break;
19 case 'finish':
20 finishJSTest();
21 break;
22 }
23 });
24
25 testRunner.setIsolatedWorldSecurityOrigin(2, 'chrome-extension://123');
26 var iframe = document.getElementsByTagName('iframe')[0];
27 iframe.focus();
28 iframe.src = 'http://127.0.0.1:8080/security/resources/cross-frame-iframe-fo r-parent-isolated-world.html';
29 } else {
30 testFailed('Test depends on LayoutTestController and must be run by DRT');
31 }
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698