Index: Source/bindings/core/v8/BindingSecurity.cpp |
diff --git a/Source/bindings/core/v8/BindingSecurity.cpp b/Source/bindings/core/v8/BindingSecurity.cpp |
index 61c8742b83008cd4bedacf1fd2bc8b86848c9d37..3f9c7eeae381754d04ed17c45ca0fd4befb6945d 100644 |
--- a/Source/bindings/core/v8/BindingSecurity.cpp |
+++ b/Source/bindings/core/v8/BindingSecurity.cpp |
@@ -72,11 +72,8 @@ static bool canAccessDocument(v8::Isolate* isolate, Document* targetDocument, Se |
if (isDocumentAccessibleFromDOMWindow(targetDocument, callingWindow)) |
return true; |
- // FIXME: This logic looks unnecessarily convoluted. |
- if (reportingOption == ReportSecurityError && targetDocument->domWindow()) { |
- if (LocalFrame* frame = targetDocument->frame()) |
- frame->localDOMWindow()->printErrorMessage(targetDocument->domWindow()->crossDomainAccessErrorMessage(callingWindow)); |
- } |
+ if (reportingOption == ReportSecurityError && targetDocument->domWindow()) |
+ callingWindow->printErrorMessage(targetDocument->domWindow()->crossDomainAccessErrorMessage(callingWindow)); |
return false; |
} |