| Index: LayoutTests/http/tests/security/cross-frame-access-location-get-v8.html
|
| diff --git a/LayoutTests/http/tests/security/cross-frame-access-location-get-v8.html b/LayoutTests/http/tests/security/cross-frame-access-location-get-v8.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd642fd4cd481e536787113eb938f05e78d11473
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/cross-frame-access-location-get-v8.html
|
| @@ -0,0 +1,32 @@
|
| +<script>
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
| +
|
| + window.onload = function () {
|
| + var frame = document.querySelector('iframe');
|
| + frame.onload = test;
|
| + frame.src = "http://localhost:8000/security/resources/cross-frame-iframe-for-location-get-test.html";
|
| + };
|
| +
|
| + function test() {
|
| + var target = frames[0];
|
| + try {
|
| + target.location.href;
|
| + } catch (e) {
|
| + console.log('target.location.href threw exception of type ' + e.name);
|
| + }
|
| +
|
| + try {
|
| + document.write('document.write');
|
| + } catch (e) {
|
| + console.log('document.write threw exception of type ' + e.name);
|
| + }
|
| +
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }
|
| +</script>
|
| +<iframe></iframe>
|
| +<pre id="output"></pre>
|
|
|