summaryrefslogtreecommitdiffstats
path: root/js/ipc/WrapperAnswer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/ipc/WrapperAnswer.cpp')
-rw-r--r--js/ipc/WrapperAnswer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/ipc/WrapperAnswer.cpp b/js/ipc/WrapperAnswer.cpp
index fc342bbb6..6ae68e01f 100644
--- a/js/ipc/WrapperAnswer.cpp
+++ b/js/ipc/WrapperAnswer.cpp
@@ -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;
-}
+} \ No newline at end of file