Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
index 78e95e367b4ce170734e2c19d3b63809b811a600..5cf10db20ad25c2f404477cb334bb197b841ab36 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
@@ -1119,6 +1119,10 @@ void LocalDOMWindow::setDefaultStatus(const String& string) { |
page->chromeClient().setStatusbarText(m_defaultStatus); |
} |
+String LocalDOMWindow::origin() const { |
+ return getExecutionContext()->getSecurityOrigin()->toString(); |
+} |
+ |
Document* LocalDOMWindow::document() const { |
return m_document.get(); |
} |