| Index: trunk/LayoutTests/http/tests/security/cross-frame-access-document-direct.html
|
| ===================================================================
|
| --- trunk/LayoutTests/http/tests/security/cross-frame-access-document-direct.html (revision 169397)
|
| +++ trunk/LayoutTests/http/tests/security/cross-frame-access-document-direct.html (working copy)
|
| @@ -14,11 +14,11 @@
|
| }
|
|
|
| // Post message to victim to check if it was accessed.
|
| - window.frames['theFrame'].postMessage("test", "*");
|
| + document.getElementById('theFrame').contentWindow.postMessage("test", "*");
|
| }, false);
|
| </script>
|
| <body>
|
| <p>Test cross-origin direct document access.</p>
|
| - <iframe name="theFrame" src="resources/cross-frame-iframe-for-document-direct-test.html"></iframe>
|
| + <iframe id="theFrame" src="resources/cross-frame-iframe-for-document-direct-test.html"></iframe>
|
| </body>
|
| </html>
|
|
|