From 3624078103303adf0b934734d95a1ed9eb7bfefd Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 22 Jan 2020 21:42:10 +0100 Subject: Issue #1366 - Fix build bustage from erroneously removing 2 function implementations. --- dom/base/nsGlobalWindow.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dom') 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::Create(nsGlobalWindow *aOuterWindow) +{ + RefPtr 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 -- cgit v1.2.3