зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1525818 - Remove NS_ASSERTION in ImageBridgeParent::GetInstance() r=mattwoodrow
Sometimes NS_ASSERTION was hit during window closing. It happens because of aync architecture. It is better to change the NS_ASSERTION to NS_WARNING. Differential Revision: https://phabricator.services.mozilla.com/D18920 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
04c18529e4
Коммит
d2b017325d
|
@ -360,7 +360,7 @@ already_AddRefed<ImageBridgeParent> ImageBridgeParent::GetInstance(
|
|||
MonitorAutoLock lock(*sImageBridgesLock);
|
||||
ImageBridgeMap::const_iterator i = sImageBridges.find(aId);
|
||||
if (i == sImageBridges.end()) {
|
||||
NS_ASSERTION(false, "Cannot find image bridge for process!");
|
||||
NS_WARNING("Cannot find image bridge for process!");
|
||||
return nullptr;
|
||||
}
|
||||
RefPtr<ImageBridgeParent> bridge = i->second;
|
||||
|
|
Загрузка…
Ссылка в новой задаче