From 742e3d828868eb422bccba637c67c28c5f2d31b0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 17 May 2016 14:17:22 +0200 Subject: [PATCH] Remove Request handling from CallSetup. --- components/script/dom/bindings/callback.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 01bb7b8815b6d..dfd5966c04f86 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -12,7 +12,6 @@ use js::jsapi::JSAutoCompartment; use js::jsapi::{Heap, MutableHandleObject, RootedObject, RootedValue}; use js::jsapi::{IsCallable, JSContext, JSObject, JS_WrapObject}; use js::jsapi::{JSCompartment, JS_EnterCompartment, JS_LeaveCompartment}; -use js::jsapi::{JS_BeginRequest, JS_EndRequest}; use js::jsapi::{JS_GetProperty, JS_IsExceptionPending, JS_ReportPendingException}; use js::jsapi::{JS_RestoreFrameChain, JS_SaveFrameChain}; use js::jsval::{JSVal, UndefinedValue}; @@ -168,9 +167,6 @@ impl CallSetup { pub fn new(callback: &T, handling: ExceptionHandling) -> CallSetup { let global = global_root_from_object(callback.callback()); let cx = global.r().get_cx(); - unsafe { - JS_BeginRequest(cx); - } let exception_compartment = unsafe { GetGlobalForObjectCrossCompartment(callback.callback()) @@ -211,8 +207,5 @@ impl Drop for CallSetup { } } } - unsafe { - JS_EndRequest(self.cx); - } } }