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

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

Issue 2706013002: Added support for self.origin in Window and WorkerGlobalScope (Closed)
Patch Set: rebase-update after manifest.json changes Created 3 years, 10 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/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();
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.h ('k') | third_party/WebKit/Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698