added wrapper selection and subsumes logic

This commit is contained in:
ddh 2017-04-17 21:33:18 +01:00
parent 9151b4b751
commit 3577d1ff94
2 changed files with 102 additions and 8 deletions

View file

@ -141,7 +141,9 @@ pub unsafe fn create_global_object(
let x = private.clone() as *const Window;
let obj = &*x;
let mut principal = CreateServoJSPrincipal(Box::into_raw(obj.origin()) as *const ::libc::c_void);
let mut principal = CreateServoJSPrincipal(Box::into_raw(obj.origin()) as *const ::libc::c_void,
None,
None);
rval.set(JS_NewGlobalObject(cx,
class,