Bug 754044 - Pass stopAtOuter=false in GetWrappedNativeOfJSObject, because that's what we mean. r=mrbkap

This commit is contained in:
Bobby Holley 2012-05-14 23:30:07 +02:00
Родитель 1da4588f12
Коммит cb4408c322
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1850,8 +1850,8 @@ return_tearoff:
// Unwrap any wrapper wrappers.
JSObject *unsafeObj = cx
? XPCWrapper::Unwrap(cx, cur)
: XPCWrapper::UnsafeUnwrapSecurityWrapper(cur);
? XPCWrapper::Unwrap(cx, cur, /* stopAtOuter = */ false)
: js::UnwrapObject(cur, /* stopAtOuter = */ false);
if (unsafeObj) {
obj = unsafeObj;
goto restart;