forked from mirrors/gecko-dev
Bug 1875484 - Add missing null check in Hal code. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D199095
This commit is contained in:
parent
aaa4bbff2a
commit
d8e4526604
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ void AssertMainThread() { MOZ_ASSERT(NS_IsMainThread()); }
|
||||||
bool InSandbox() { return GeckoProcessType_Content == XRE_GetProcessType(); }
|
bool InSandbox() { return GeckoProcessType_Content == XRE_GetProcessType(); }
|
||||||
|
|
||||||
bool WindowIsActive(nsPIDOMWindowInner* aWindow) {
|
bool WindowIsActive(nsPIDOMWindowInner* aWindow) {
|
||||||
|
NS_ENSURE_TRUE(aWindow, false);
|
||||||
dom::Document* document = aWindow->GetDoc();
|
dom::Document* document = aWindow->GetDoc();
|
||||||
NS_ENSURE_TRUE(document, false);
|
NS_ENSURE_TRUE(document, false);
|
||||||
return !document->Hidden();
|
return !document->Hidden();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue