mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update js.
This commit is contained in:
parent
0d6d6a0500
commit
a9671550ff
5 changed files with 32 additions and 5 deletions
|
@ -690,7 +690,7 @@ unsafe extern fn wrap(cx: *mut JSContext,
|
|||
-> *mut JSObject {
|
||||
// FIXME terrible idea. need security wrappers
|
||||
// https://github.com/servo/servo/issues/2382
|
||||
WrapperNew(cx, obj, GetCrossCompartmentWrapper())
|
||||
WrapperNew(cx, obj, GetCrossCompartmentWrapper(), ptr::null(), false)
|
||||
}
|
||||
|
||||
unsafe extern fn pre_wrap(cx: *mut JSContext, _existing: HandleObject,
|
||||
|
|
|
@ -78,7 +78,7 @@ impl BrowsingContext {
|
|||
let _ar = JSAutoRequest::new(cx);
|
||||
let parent = win.reflector().get_jsobject();
|
||||
let _ac = JSAutoCompartment::new(cx, parent.get());
|
||||
let wrapper = unsafe { WrapperNew(cx, parent, handler) };
|
||||
let wrapper = unsafe { WrapperNew(cx, parent, handler, ptr::null(), false) };
|
||||
assert!(!wrapper.is_null());
|
||||
self.window_proxy.set(wrapper);
|
||||
}
|
||||
|
|
11
components/servo/Cargo.lock
generated
11
components/servo/Cargo.lock
generated
|
@ -630,6 +630,14 @@ dependencies = [
|
|||
"libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "heapsize"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hpack"
|
||||
version = "0.2.0"
|
||||
|
@ -720,8 +728,9 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "js"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/rust-mozjs#e1a8c46045c698ed7c02c381334b9305a7088bbd"
|
||||
source = "git+https://github.com/servo/rust-mozjs#85e4eff9936889436b24ceefd689d4467db302a9"
|
||||
dependencies = [
|
||||
"heapsize 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"mozjs_sys 0.0.0 (git+https://github.com/servo/mozjs)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue