rem: if (!bestLevel || (level && (level < bestLevel) )) 
add: if (!bestLevel || (level && (level > bestLevel) )) 
context: function getBestPanelName(object, context, panelName){    if (!panelName)        panelName = context.panelName;    // Check if the suggested panel name supports the object, and if so, go with it    if (panelName)    {        panelType = Firebug.getPanelType(panelName);        if (panelSupportsObject(panelType, object))            return panelType.prototype.name;    }    // The suggested name didn't pan out, so search for the panel type with the    // most specific level of support    var bestLevel = 0;    var bestPanel = null;    for (var i = 0; i < Firebug.panelTypes.length; ++i)    {        var panelType = Firebug.panelTypes[i];        if (!panelType.prototype.parentPanel)        {            var level = panelSupportsObject(panelType, object);            if (!bestLevel || (level && (level < bestLevel) ))  // XXXjjb I do not understand why this works            {                bestLevel = level;                bestPanel = panelType;            }            if (FBTrace.DBG_PANELS)                                                                                                                      /*@explore*/                FBTrace.sysout("chrome.getBestPanelName panelType: "+panelType+" level: "+level+" bestPanel: "+bestPanel+" bestLevel: "+bestLevel+"\n"); /*@explore*/        }    }    return bestPanel ? bestPanel.prototype.name : null;}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/9866a3e3266d4a8728f5cdcbb4073564697128ab/chrome.js/buggy/extension/content/firebug/chrome.js