mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 483f0a6a540e (bug 1061202) for mochitest-bc asserts/crashes.
This commit is contained in:
parent
ac54691b5b
commit
be0f5391a8
@ -1601,10 +1601,6 @@ nsDocument::~nsDocument()
|
||||
|
||||
NS_ASSERTION(!mIsShowing, "Destroying a currently-showing document");
|
||||
|
||||
MOZ_ASSERT(!mObservingAppThemeChanged,
|
||||
"Document leaked to shutdown, then the observer service dropped "
|
||||
"its ref to us so we were able to go away.");
|
||||
|
||||
if (IsTopLevelContentDocument()) {
|
||||
//don't report for about: pages
|
||||
nsCOMPtr<nsIPrincipal> principal = GetPrincipal();
|
||||
@ -8877,10 +8873,7 @@ nsDocument::OnPageShow(bool aPersisted,
|
||||
"chrome-page-shown" :
|
||||
"content-page-shown",
|
||||
nullptr);
|
||||
if (!mObservingAppThemeChanged) {
|
||||
os->AddObserver(this, "app-theme-changed", /* ownsWeak */ false);
|
||||
mObservingAppThemeChanged = true;
|
||||
}
|
||||
os->AddObserver(this, "app-theme-changed", /* ownsWeak */ false);
|
||||
|
||||
DispatchPageTransition(target, NS_LITERAL_STRING("pageshow"), aPersisted);
|
||||
}
|
||||
@ -8956,7 +8949,6 @@ nsDocument::OnPageHide(bool aPersisted,
|
||||
nullptr);
|
||||
|
||||
os->RemoveObserver(this, "app-theme-changed");
|
||||
mObservingAppThemeChanged = false;
|
||||
}
|
||||
|
||||
DispatchPageTransition(target, NS_LITERAL_STRING("pagehide"), aPersisted);
|
||||
|
@ -1598,12 +1598,6 @@ public:
|
||||
|
||||
bool mAsyncFullscreenPending:1;
|
||||
|
||||
// Whether we're observing the "app-theme-changed" observer service
|
||||
// notification. We need to keep track of this because we might get multiple
|
||||
// OnPageShow notifications in a row without an OnPageHide in between, if
|
||||
// we're getting document.open()/close() called on us.
|
||||
bool mObservingAppThemeChanged:1;
|
||||
|
||||
// Keeps track of whether we have a pending
|
||||
// 'style-sheet-applicable-state-changed' notification.
|
||||
bool mSSApplicableStateNotificationPending:1;
|
||||
|
Loading…
Reference in New Issue
Block a user