rem: response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, 
add: response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec), 
context: function svc_source (response, parsedURL){    function onSourceTextLoaded (status)    {        if (status != Components.results.NS_OK)        {            response.start();            response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec,                                                        status]));            response.end();            display (getMsg (MSN_ERR_SOURCE_LOAD_FAILED,                             [parsedURL.spec, status]),                     MT_ERROR);            return;        }        console.respondWithSourceText (response, sourceText);    }    if (!("location" in parsedURL) || !parsedURL.location)    {        var err = getMsg(MSN_ERR_REQUIRED_PARAM, "location");        response.start();        response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, err]));        response.end();        return;    }            var sourceText;    var targetURL = parsedURL.location;        if (targetURL in console.scriptManagers)    {        var scriptManager = console.scriptManagers[targetURL];        if ("instance" in parsedURL)        {            var instance =                scriptManager.getInstanceBySequence(parsedURL.instance);            if (instance)                sourceText = instance.sourceText;        }                if (!sourceText)            sourceText = scriptManager.sourceText;    }    else    {        if (targetURL in console.files)            sourceText = console.files[targetURL];        else            sourceText = console.files[targetURL] = new SourceText (targetURL);    }    if (!sourceText)    {        response.start();        response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec,                                                    MSG_ERR_JSDURL_SOURCETEXT]));        response.end();        return;    }    if (!sourceText.isLoaded)        sourceText.loadSource (onSourceTextLoaded);    else        onSourceTextLoaded(Components.results.NS_OK);    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e127d6bd352ccc6ff6dc580793875826a8529bb6/venkman-jsdurl.js/buggy/extensions/venkman/resources/content/venkman-jsdurl.js