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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2668753006: Special-case LocalDOMWindow for same-origin access in bindings. (Closed)
Patch Set: Just special case DOMWindow Created 3 years, 11 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: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 5c0ed1c3831289692449b02fe10a8503d391b4a0..278b030c92bc6a132e5d1b5c5e7a66b81ee71ed5 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -531,7 +531,7 @@ void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) {
}
Document* LocalFrame::document() const {
- return m_domWindow ? m_domWindow->document() : nullptr;
+ return domWindow() ? domWindow()->document() : nullptr;
}
void LocalFrame::setPagePopupOwner(Element& owner) {

Powered by Google App Engine
This is Rietveld 408576698