зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3d8a035fa8
Коммит
0d51972581
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче