mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1777301 - Fix crash in FontFaceSetDocumentImpl::Destroy due to clearing document reference too early. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D150684
This commit is contained in:
parent
beec44fed6
commit
305c52258d
@ -95,9 +95,11 @@ void FontFaceSetDocumentImpl::Destroy() {
|
||||
|
||||
mRuleFaces.Clear();
|
||||
|
||||
mDocument = nullptr;
|
||||
|
||||
// Since the base class may depend on the document remaining set, we need to
|
||||
// clear mDocument after.
|
||||
FontFaceSetImpl::Destroy();
|
||||
|
||||
mDocument = nullptr;
|
||||
}
|
||||
|
||||
uint64_t FontFaceSetDocumentImpl::GetInnerWindowID() {
|
||||
|
Loading…
Reference in New Issue
Block a user