mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-29 02:27:30 +09:00
Bug 1350960 - Release CustomElementReactionsStack in TabGroup thread when DocGroup is going away.
Note: In UXP we use non-Quantum thread checking implementation here. Tag UXP Issue #1344
This commit is contained in:
parent
a176a0e5f2
commit
932dde0dfe
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ DocGroup::DocGroup(TabGroup* aTabGroup, const nsACString& aKey)
|
||||||
DocGroup::~DocGroup()
|
DocGroup::~DocGroup()
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mDocuments.IsEmpty());
|
MOZ_ASSERT(mDocuments.IsEmpty());
|
||||||
|
if (!NS_IsMainThread()) {
|
||||||
|
NS_ReleaseOnMainThread(mReactionsStack.forget());
|
||||||
|
}
|
||||||
mTabGroup->mDocGroups.RemoveEntry(mKey);
|
mTabGroup->mDocGroups.RemoveEntry(mKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue