Index: Source/bindings/core/v8/BindingSecurity.cpp |
diff --git a/Source/bindings/core/v8/BindingSecurity.cpp b/Source/bindings/core/v8/BindingSecurity.cpp |
index f3cb1164c7db70100bbca238c5739766269415ea..61c8742b83008cd4bedacf1fd2bc8b86848c9d37 100644 |
--- a/Source/bindings/core/v8/BindingSecurity.cpp |
+++ b/Source/bindings/core/v8/BindingSecurity.cpp |
@@ -72,9 +72,10 @@ 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->domWindow()->printErrorMessage(targetDocument->domWindow()->crossDomainAccessErrorMessage(callingWindow)); |
+ frame->localDOMWindow()->printErrorMessage(targetDocument->domWindow()->crossDomainAccessErrorMessage(callingWindow)); |
} |
return false; |