mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1086996 - Stop wrapping XBL handlers into the content compartment. r=bz
This commit is contained in:
parent
ce72a9e2b9
commit
95861609ac
@ -312,12 +312,6 @@ nsXBLPrototypeHandler::ExecuteHandler(EventTarget* aTarget,
|
||||
JS::Rooted<JSObject*> bound(cx, JS_CloneFunctionObject(cx, genericHandler, target));
|
||||
NS_ENSURE_TRUE(bound, NS_ERROR_FAILURE);
|
||||
|
||||
// Now, wrap the bound handler into the content compartment and use it.
|
||||
JSAutoCompartment ac2(cx, globalObject);
|
||||
if (!JS_WrapObject(cx, &bound)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsRefPtr<EventHandlerNonNull> handlerCallback =
|
||||
new EventHandlerNonNull(bound, /* aIncumbentGlobal = */ nullptr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user