| Index: LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html
|
| diff --git a/LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html b/LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html
|
| index efe7d0a023b740732e452be5abe8d9ccc33c4d18..4e468379e52f3027c8bc1ad460ea22f2ce96cefe 100644
|
| --- a/LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html
|
| +++ b/LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html
|
| @@ -56,15 +56,19 @@ function runTest() {
|
| }
|
|
|
| // Try accessing top.document using NPN_EVALUATE
|
| - var l = document.plugin.testEvaluate('top.document')
|
| - if (l) {
|
| + try {
|
| + var documentViaTestEvaluate = document.plugin.testEvaluate('top.document')
|
| + } catch (e) {};
|
| + if (documentViaTestEvaluate) {
|
| debug('could access top.document');
|
| numErrors++;
|
| }
|
|
|
| // Try accessing top.document using NPN_GetProperty
|
| - var l = document.plugin.testGetProperty('top', 'document')
|
| - if (l) {
|
| + try {
|
| + var documentViaTestGetProperty = document.plugin.testGetProperty('top', 'document')
|
| + } catch (e) {};
|
| + if (documentViaTestGetProperty) {
|
| debug('could access top.document');
|
| numErrors++;
|
| }
|
|
|