summaryrefslogtreecommitdiff
path: root/dom/base/nsGlobalWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsGlobalWindow.cpp')
-rw-r--r--dom/base/nsGlobalWindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index 293a522efe..fa2f4ad798 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -9892,6 +9892,13 @@ nsGlobalWindow::Btoa(const nsAString& aBinaryData,
aError = nsContentUtils::Btoa(aBinaryData, aAsciiBase64String);
}
+void
+nsGlobalWindow::GetOrigin(nsAString& aOrigin)
+{
+ MOZ_ASSERT(IsInnerWindow());
+ nsContentUtils::GetUTFOrigin(GetPrincipal(), aOrigin);
+}
+
//*****************************************************************************
// nsGlobalWindow::nsIDOMEventTarget
//*****************************************************************************