зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1630208 part 1: Assert that we don't add a shut down DocAccessibleParent to the remote XPC cache in DocManager::GetXPCDocument. r=yzen
We really want to know about this because the document will never be removed from the cache, since NotifyOfRemoteDocShutdown (which would normally remove it from the XPC cache) won't get called. Differential Revision: https://phabricator.services.mozilla.com/D79779
This commit is contained in:
Родитель
f93d2c823e
Коммит
dffc53d36b
|
@ -145,6 +145,7 @@ xpcAccessibleDocument* DocManager::GetXPCDocument(DocAccessibleParent* aDoc) {
|
|||
xpcAccessibleDocument>;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!aDoc->IsShutdown(), "Adding a shutdown doc to remote XPC cache");
|
||||
doc = new xpcAccessibleDocument(aDoc,
|
||||
Interfaces::DOCUMENT | Interfaces::HYPERTEXT);
|
||||
sRemoteXPCDocumentCache->Put(aDoc, RefPtr{doc});
|
||||
|
|
Загрузка…
Ссылка в новой задаче