From eb94f1a9182c369165ddbf040fcb97c408482689 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sat, 9 Apr 2016 00:48:19 +0200 Subject: Update SpiderMonkey --- components/script/script_thread.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 4768273c16e..2896c2306dc 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -51,9 +51,9 @@ use hyper::method::Method; use hyper::mime::{Mime, SubLevel, TopLevel}; use ipc_channel::ipc::{self, IpcSender}; use ipc_channel::router::ROUTER; +use js::glue::GetWindowProxyClass; use js::jsapi::{DOMProxyShadowsResult, HandleId, HandleObject, RootedValue}; -use js::jsapi::{JSAutoRequest, JS_SetWrapObjectCallbacks}; -use js::jsapi::{JSContext, JSTracer}; +use js::jsapi::{JSAutoRequest, JSContext, JS_SetWrapObjectCallbacks, JSTracer, SetWindowProxyClass}; use js::jsval::UndefinedValue; use js::rust::Runtime; use layout_interface::{ReflowQueryType}; @@ -515,6 +515,7 @@ impl ScriptThread { unsafe { JS_SetWrapObjectCallbacks(runtime.rt(), &WRAP_CALLBACKS); + SetWindowProxyClass(runtime.rt(), GetWindowProxyClass()); } // Ask the router to proxy IPC messages from the devtools to us. -- cgit v1.2.3