rem: if (!context.sourceFiles || reload) context.sourceFiles = []; 
add: var oldMap = reload ? context.sourceFileMap : null; 
context: this.updateScriptFiles = function(context, reload){    if (!context.sourceFiles || reload)        context.sourceFiles = [];    // list of all SourceFiles, built here only and cached    if (!context.sourceFileMap)    {        context.sourceFileMap = {};  // url->FBL.SourceFile built here and elsewhere        if (FBTrace.DBG_SOURCEFILES) FBTrace.sysout("lib.updateScriptFiles No sourceFileMap!\n");                      /*@explore*/    }    if (!context.loaded || !context.sourceFiles.length) // XXXjjb: TODO dynamics may also need a new list    {        var oldMap = reload ? context.sourceFileMap : null;        var sourceFileMap = context.sourceFileMap;        function addFile(url)        {            if (!(url in sourceFileMap))            {                if (oldMap && url in oldMap)                {                    var sourceFile = oldMap[url];                    sourceFileMap[url] = sourceFile;                }                else                {                    var sourceFile = new FBL.SourceFile(url);                    context.sourceFileMap[url] = sourceFile;                }            }        }        // iff script tag mutation        this.iterateWindows(context.window, this.bind(function(win)        {            if (FBTrace.DBG_SOURCEFILES)  																								/*@explore*/                FBTrace.sysout("updateScriptFiles iterateWindows: "+win.location.href+" documentElement:",win.document.documentElement);  /*@explore*/            if (!win.document.documentElement)                return;            var scripts = win.document.documentElement.getElementsByTagName("script");            for (var i = 0; i < scripts.length; ++i)            {                var scriptSrc = scripts[i].getAttribute('src'); // for XUL use attribute                var url = scriptSrc ? this.absoluteURL(scriptSrc, win.location.href) : win.location.href;                url = this.normalizeURL(url ? url : win.location.href);                addFile(url);                if (FBTrace.DBG_SOURCEFILES)                                                                           /*@explore*/                    FBTrace.sysout("updateScriptFiles "+(scriptSrc?"inclusion":"inline")+" script #"+i+"/"+scripts.length+" adding "+url+" to context="+context.window.location+"\n");  /*@explore*/            }        }, this));        this.addSourceFilesByURL(context.sourceFiles, sourceFileMap);        //addFile(context.window.location.href); // ?? This should be handled by the first iteration of iterateWindows    }    return context.sourceFiles;};
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/c5f013dccda5f25ec6c3894c73898353bae36759/lib.js/buggy/extension/content/firebug/lib.js