Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: LayoutTests/http/tests/plugins/resources/cross-frame-object-access.html

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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++;
}

Powered by Google App Engine
This is Rietveld 408576698