mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Improve dead compartment collection js/ipc
This commit is contained in:
parent
68a36fe36f
commit
acf2827e3c
3 changed files with 14 additions and 4 deletions
|
|
@ -789,10 +789,10 @@ WrapperAnswer::RecvDOMInstanceOf(const ObjectId& objId, const int& prototypeID,
|
|||
bool
|
||||
WrapperAnswer::RecvDropObject(const ObjectId& objId)
|
||||
{
|
||||
JSObject* obj = objects_.find(objId);
|
||||
JSObject* obj = objects_.findPreserveColor(objId);
|
||||
if (obj) {
|
||||
objectIdMap(objId.hasXrayWaiver()).remove(obj);
|
||||
objects_.remove(objId);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue