| Index: LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached.html
|
| diff --git a/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached.html b/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached.html
|
| index e91c7fe6177680002ba53b80e8ccd43d4ea5ef21..f6d6c5a422e5ca9b6b540908d16ac964f920507d 100644
|
| --- a/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached.html
|
| +++ b/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached.html
|
| @@ -30,18 +30,23 @@
|
| testRunner.notifyDone();
|
| }
|
|
|
| - function getCustomProperty(o)
|
| + function customPropertyAccessThrowsException(o)
|
| {
|
| - return o.customProperty;
|
| + try {
|
| + var x = o.customProperty;
|
| + return false;
|
| + } catch (e) {
|
| + return true;
|
| + }
|
| }
|
|
|
| runTest = function()
|
| {
|
| window.targetWindow = frames[0];
|
|
|
| - shouldBeUndefined("getCustomProperty(targetWindow)");
|
| - shouldBeUndefined("getCustomProperty(targetWindow)");
|
| - shouldBeUndefined("getCustomProperty(targetWindow)");
|
| + shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
|
| + shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
|
| + shouldBeTrue("customPropertyAccessThrowsException(targetWindow)");
|
| }
|
| </script>
|
| </head>
|
|
|