diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-04-09 00:48:19 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-03 18:36:11 +0200 |
commit | eb94f1a9182c369165ddbf040fcb97c408482689 (patch) | |
tree | 80ac2d439c9e76a8163b001700f1f91f248e0ba8 /components/script/script_thread.rs | |
parent | d32648172c711b5d95819c58bcedcee5f50f3018 (diff) | |
download | servo-eb94f1a9182c369165ddbf040fcb97c408482689.tar.gz servo-eb94f1a9182c369165ddbf040fcb97c408482689.zip |
Update SpiderMonkey
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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. |