summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-22 21:42:10 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-22 21:42:10 +0100
commit3624078103303adf0b934734d95a1ed9eb7bfefd (patch)
tree6756c5f0570f8b2a7efbcfa1589bd1fd2de0707d /dom
parent5a6059feef9d2c7837afa3f87a2a9bfed345bb9d (diff)
downloaduxp-3624078103303adf0b934734d95a1ed9eb7bfefd.tar.gz
Issue #1366 - Fix build bustage from erroneously removing 2 function implementations.
Diffstat (limited to 'dom')
-rw-r--r--dom/base/nsGlobalWindow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index 0587eb8927..dd1fe45862 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -14456,6 +14456,20 @@ nsGlobalChromeWindow::TakeOpenerForInitialContentBrowser(mozIDOMWindowProxy** aO
return NS_OK;
}
+/* static */ already_AddRefed<nsGlobalWindow>
+nsGlobalWindow::Create(nsGlobalWindow *aOuterWindow)
+{
+ RefPtr<nsGlobalWindow> window = new nsGlobalWindow(aOuterWindow);
+ window->InitWasOffline();
+ return window.forget();
+}
+
+void
+nsGlobalWindow::InitWasOffline()
+{
+ mWasOffline = NS_IsOffline();
+}
+
#if defined(MOZ_WIDGET_ANDROID)
int16_t
nsGlobalWindow::Orientation(CallerType aCallerType) const