rem: getXULWindowFromWindow(glob.getWrappedValue()); /* targetWindow.enabled = false; if (targetWindow.modalMien) { wasModal = true; targetWindow.modalMien = false; } */ 
add: getBaseWindowFromWindow(glob.getWrappedValue()); targetWasEnabled = console.targetWindow.enabled; console.targetWindow.enabled = false; 
context: function vnk_exehook (frame, type, rv){    var hookReturn = jsdIExecutionHook.RETURN_CONTINUE;    if (!ASSERT(!("frames" in console), "Execution hook called while stopped") ||        frame.isNative ||        !ASSERT(frame.script, "Execution hook called with no script") ||        frame.script.fileName == MSG_VAL_CONSOLE)    {        return hookReturn;    }    var targetWindow = null;    var wasModal = false;    var ex;    var cx;    try    {        cx = frame.executionContext;    }    catch (ex)    {        dd ("no context");        cx = null;    }        if (cx)    {        cx.scriptsEnabled = false;        var glob = cx.globalObject;        if (glob)        {            console.targetWindow =                getXULWindowFromWindow(glob.getWrappedValue());                /*                targetWindow.enabled = false;                if (targetWindow.modalMien)                {                    wasModal = true;                    targetWindow.modalMien = false;                    }                */        }    }                      try    {        hookReturn = debugTrap(frame, type, rv);    }    catch (ex)    {        display (MSG_ERR_INTERNAL_BPT, MT_ERROR);        display (formatException(ex), MT_ERROR);    }        if (cx)    {        cx.scriptsEnabled = true;        if (0 && targetWindow)        {            targetWindow.enabled = true;            if (wasModal)                targetWindow.modalMien = true;        }    }        delete console.frames;    delete console.targetWindow;    if ("__exitAfterContinue__" in console)        window.close();    return hookReturn;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6fc1f250afb4c38059a00b6b350131b44a14dd1b/venkman-debugger.js/buggy/extensions/venkman/resources/content/venkman-debugger.js