context:     getLocalSourceFile: function(context, href)    {        if ( isLocalURL(href) )            return href;        var data;        if (context)        {            data = context.sourceCache.loadText(href);        } else        {            var ctx = { browser: tabBrowser.selectedBrowser, window: tabBrowser.selectedBrowser.contentWindow };            data = new SourceCache(ctx).loadText(href);        }        if (!data)            return;        if (!temporaryDirectory)        {            var tmpDir = DirService.getFile(NS_OS_TEMP_DIR, {});            tmpDir.append("fbtmp");            tmpDir.createUnique(nsIFile.DIRECTORY_TYPE, 0775);            temporaryDirectory = tmpDir;        }                var lpath = href.replace(/^[^:]+:\/*/g, "").replace(/\?.*$/g, "").replace(/[^0-9a-zA-Z\/.]/g, "_");        if ( !/\.[\w]{1,5}$/.test(lpath) )        {            if ( lpath.charAt(lpath.length-1) == '/' )                lpath += "index";            lpath += ".html";        }        if ( getPlatformName() == "WINNT" )            lpath = lpath.replace(/\//g, "\\");        var file = QI(temporaryDirectory.clone(), nsILocalFile);        file.appendRelativePath(lpath);        if (!file.exists())            file.create(nsIFile.NORMAL_FILE_TYPE, 664);        temporaryFiles.push(file.path);        var stream = CCIN("@mozilla.org/network/safe-file-output-stream;1", "nsIFileOutputStream");        stream.init(file, 0x04 | 0x08 | 0x20, 664, 0); // write, create, truncate        stream.write(data, data.length);        if (stream instanceof nsISafeOutputStream)            stream.finish();        else            stream.close();                return file.path;    },
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/0fdfc663d6e6e0d4a6043b4035a0f87f31c76c2d/firebug.js/buggy/extension/content/firebug/firebug.js