mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1507604 - Remove nsPIDOMWindowInner::IsTopLevelWindowActive. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D12141 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
06b131e7c9
commit
3602a1b804
@ -4400,15 +4400,6 @@ nsGlobalWindowInner::GetLocation()
|
||||
return mLocation;
|
||||
}
|
||||
|
||||
bool
|
||||
nsGlobalWindowInner::IsTopLevelWindowActive()
|
||||
{
|
||||
if (GetOuterWindowInternal()) {
|
||||
return GetOuterWindowInternal()->IsTopLevelWindowActive();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
nsGlobalWindowInner::MaybeUpdateTouchState()
|
||||
{
|
||||
|
@ -339,9 +339,6 @@ public:
|
||||
|
||||
nsresult PostHandleEvent(mozilla::EventChainPostVisitor& aVisitor) override;
|
||||
|
||||
// Outer windows only.
|
||||
virtual bool IsTopLevelWindowActive() override;
|
||||
|
||||
virtual PopupControlState GetPopupControlState() const override;
|
||||
|
||||
void Suspend();
|
||||
|
@ -371,8 +371,6 @@ public:
|
||||
virtual nsresult UnregisterIdleObserver(
|
||||
mozilla::dom::MozIdleObserver& aIdleObserver) = 0;
|
||||
|
||||
virtual bool IsTopLevelWindowActive() = 0;
|
||||
|
||||
mozilla::dom::EventTarget* GetParentTarget()
|
||||
{
|
||||
if (!mParentTarget) {
|
||||
|
@ -246,8 +246,9 @@ WindowCannotReceiveSensorEvent (nsPIDOMWindowInner* aWindow)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool disabled = aWindow->GetOuterWindow()->IsBackground() ||
|
||||
!aWindow->IsTopLevelWindowActive();
|
||||
nsPIDOMWindowOuter* windowOuter = aWindow->GetOuterWindow();
|
||||
bool disabled = windowOuter->IsBackground() ||
|
||||
!windowOuter->IsTopLevelWindowActive();
|
||||
if (disabled) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user