debugging

This commit is contained in:
ddh 2017-05-09 16:58:40 +01:00
parent 3acac9d8e0
commit bb283d981a
2 changed files with 21 additions and 4 deletions

View file

@ -82,6 +82,7 @@ enum CrossOriginObjectType {
}
unsafe fn identify_cross_origin_object(obj: HandleObject) -> CrossOriginObjectType {
println!("unchecked unwrap for identfy xoo");
let obj = UncheckedUnwrapObject(obj.get(), /* stopAtWindowProxy = */ 0);
let obj_class = JS_GetClass(obj);
let name = str::from_utf8(CStr::from_ptr((*obj_class).name).to_bytes()).unwrap().to_owned();
@ -312,6 +313,7 @@ pub fn is_platform_object(obj: *mut JSObject) -> bool {
}
// Now for simplicity check for security wrappers before anything else
if IsWrapper(obj) {
println!("unwrap obj for sec wrapper check");
let unwrapped_obj = UnwrapObject(obj, /* stopAtWindowProxy = */ 0);
if unwrapped_obj.is_null() {
return false;