Pass real values to the proxy handler setup.

This commit is contained in:
Josh Matthews 2016-08-22 17:45:36 -04:00
parent 3c4a08c016
commit 2ad293ca64
5 changed files with 24 additions and 15 deletions

View file

@ -114,10 +114,10 @@ mod unpremultiplytable;
mod webdriver_handlers;
use dom::bindings::codegen::RegisterBindings;
use js::jsapi::{Handle, JSContext, JSObject, SetDOMProxyInformation};
use dom::bindings::proxyhandler;
use js::jsapi::{Handle, JSContext, JSObject};
use script_traits::SWManagerSenders;
use serviceworker_manager::ServiceWorkerManager;
use std::ptr;
use util::opts;
#[cfg(target_os = "linux")]
@ -164,7 +164,7 @@ fn perform_platform_specific_initialization() {}
#[allow(unsafe_code)]
pub fn init(sw_senders: SWManagerSenders) {
unsafe {
SetDOMProxyInformation(ptr::null(), 0, Some(script_thread::shadow_check_callback));
proxyhandler::init();
}
// Spawn the service worker manager passing the constellation sender