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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 window.jsTestIsAsync = true;
10 if (document.location.hostname == '127.0.0.1') {
11 document.location.hostname = 'subdomain.example.test';
12 } else {
13 description('Tests that isolated worlds do not allow cross-origin frame acce ss');
14
15 if (window.testRunner) {
16 window.addEventListener('message', function(event) {
17 var message = JSON.parse(event.data);
18 switch (message.type) {
19 case 'debug':
20 debug(message.message);
21 break;
22 case 'finish':
23 finishJSTest();
24 break;
25 }
26 });
27
28 testRunner.setIsolatedWorldSecurityOrigin(2, 'chrome-extension://123');
29 var iframe = document.getElementsByTagName('iframe')[0];
30 iframe.focus();
31 document.domain = 'example.test';
32 iframe.src = 'http://subdomain.example.test:8000/security/resources/cros s-frame-iframe-for-parent-isolated-world.html';
33 } else {
34 testFailed('Test depends on LayoutTestController and must be run by DRT' );
35 }
36 }
37 </script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698