summaryrefslogtreecommitdiffstats
path: root/dom/base/nsGlobalWindow.cpp
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/base/nsGlobalWindow.cpp
parent5a6059feef9d2c7837afa3f87a2a9bfed345bb9d (diff)
downloadUXP-3624078103303adf0b934734d95a1ed9eb7bfefd.tar
UXP-3624078103303adf0b934734d95a1ed9eb7bfefd.tar.gz
UXP-3624078103303adf0b934734d95a1ed9eb7bfefd.tar.lz
UXP-3624078103303adf0b934734d95a1ed9eb7bfefd.tar.xz
UXP-3624078103303adf0b934734d95a1ed9eb7bfefd.zip
Issue #1366 - Fix build bustage from erroneously removing 2 function implementations.
Diffstat (limited to 'dom/base/nsGlobalWindow.cpp')
-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 0587eb892..dd1fe4586 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