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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-port-explicit-domain.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="resources/cross-frame-access.js"></script> 3 <script src="resources/cross-frame-access.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p>This test currently fails because we check the port and protocol even if docu ment.domain is explicitly set (rdar://problem/5366437).</p> 6 <p>This test currently fails because we check the port and protocol even if docu ment.domain is explicitly set (rdar://problem/5366437).</p>
7 <iframe id="aFrame"></iframe> 7 <iframe id="aFrame" name="aFrame"></iframe>
8 <pre id="console"></pre> 8 <pre id="console"></pre>
9 <script> 9 <script>
10 // Explicitly set the domain. 10 // Explicitly set the domain.
11 document.domain = "127.0.0.1"; 11 document.domain = "127.0.0.1";
12 12
13 var url = "http://127.0.0.1:8080/security/resources/cross-frame-iframe-with- explicit-domain-set.html"; 13 var url = "http://127.0.0.1:8080/security/resources/cross-frame-iframe-with- explicit-domain-set.html";
14 var iframeId ="aFrame"; 14 var iframeId ="aFrame";
15 var passMessage = "PASS: Cross frame access to a different port, after expli citly setting document.domain, was allowed!"; 15 var passMessage = "PASS: Cross frame access to a different port, after expli citly setting document.domain, was allowed!";
16 var failMessage = "Fail: Cross frame access to a different port, after expli citly setting document.domain, was denied."; 16 var failMessage = "Fail: Cross frame access to a different port, after expli citly setting document.domain, was denied.";
17 canAccessFrame(url, iframeId, passMessage, failMessage); 17 canAccessFrame(url, iframeId, passMessage, failMessage);
18 </script> 18 </script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698