Bug 604368 - Protect against the this translator returning a this object from another domain. r=peterv

--HG--
extra : rebase_source : cf6f17e100d0b2fc1cef483e3480757f636d877a
This commit is contained in:
Blake Kaplan 2010-10-14 16:57:56 -07:00
Родитель 3d8a035fa8
Коммит 0d51972581
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1442,6 +1442,8 @@ nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS* wrapper, uint16 methodIndex,
goto pre_call_clean_up;
}
thisObj = JSVAL_TO_OBJECT(v);
if(!JS_WrapObject(cx, &thisObj))
goto pre_call_clean_up;
}
}
}