JS_EndRequest(event->cx);
static void* handleTriggerEvent(XPITriggerEvent* event){    jsval  ret;    void*  mark;    jsval* args;    args = JS_PushArguments( event->cx, &mark, "Wi",                             event->URL.get(),                             event->status );    if ( args )    {        nsCOMPtr<nsIJSContextStack> stack =            do_GetService("@mozilla.org/js/xpc/ContextStack;1");        if (stack)            stack->Push(event->cx);        JS_CallFunctionValue( event->cx,                              JSVAL_TO_OBJECT(event->global),                              event->cbval,                              2,                              args,                              &ret );        if (stack)            stack->Pop(nsnull);        JS_PopArguments( event->cx, mark );    }    return 0;}