Store proxy handlers in a static array rather than a hashtable per window.

This commit is contained in:
Ms2ger 2014-07-11 17:03:31 +02:00
parent f47b66b0c1
commit fd167f8922
4 changed files with 85 additions and 38 deletions

View file

@ -549,8 +549,7 @@ impl ScriptTask {
window.deref().init_browser_context(&*document);
with_compartment((**cx).ptr, window.reflector().get_jsobject(), || {
let mut js_info = page.mut_js_info();
RegisterBindings::Register(&*window, js_info.get_mut_ref());
RegisterBindings::Register(&*window);
});
self.compositor.set_ready_state(Loading);