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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ipc/WrapperAnswer.cpp b/js/ipc/WrapperAnswer.cpp
index fc342bbb6..563f8f90d 100644
--- a/js/ipc/WrapperAnswer.cpp
+++ b/js/ipc/WrapperAnswer.cpp
@@ -789,7 +789,7 @@ 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);