3 <script src=
"resources/cross-frame-access.js"></script>
5 window
.onload = function()
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
12 window
.addEventListener('message', function ()
15 if (window
.testRunner
)
16 testRunner
.notifyDone();
20 function customPropertyAccessThrowsException(o
)
23 var x
= o
.customProperty
;
32 window
.targetWindow
= frames
[0];
34 shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
35 shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
36 shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
41 <p>This test checks that caching of property accesses doesn't allow for illegal cross-frame access of a custom property. It also checks for an assertion failure that once occurred in this situation.
</p>
42 <iframe src=
"http://localhost:8000/security/resources/cross-frame-access-get-custom-property-cached-iframe.html" style=
""></iframe>
43 <pre id=
"console"></pre>