mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Upgraded to SM 60
This commit is contained in:
committed by
Josh Matthews
parent
d34403047e
commit
74c1e00d81
@@ -836,11 +836,11 @@ impl ScriptThread {
|
||||
chan: Sender<MainThreadScriptMsg>)
|
||||
-> ScriptThread {
|
||||
let runtime = unsafe { new_rt_and_cx() };
|
||||
let cx = runtime.cx();
|
||||
|
||||
unsafe {
|
||||
JS_SetWrapObjectCallbacks(runtime.rt(),
|
||||
&WRAP_CALLBACKS);
|
||||
SetWindowProxyClass(runtime.rt(), GetWindowProxyClass());
|
||||
JS_SetWrapObjectCallbacks(cx, &WRAP_CALLBACKS);
|
||||
SetWindowProxyClass(cx, GetWindowProxyClass());
|
||||
}
|
||||
|
||||
// Ask the router to proxy IPC messages from the devtools to us.
|
||||
|
||||
Reference in New Issue
Block a user