context:     onContextShowing: function(event)    {        if (!panelBar1.selectedPanel)            return false;        var popup = $("fbContextMenu");        var target = document.popupNode;        var panel = target ? Firebug.getElementPanel(target) : null;                if (!panel)            return false;                FBL.eraseNode(popup);        if (!this.contextMenuObject && !$("cmd_copy").getAttribute("disabled"))        {            var menuitem = FBL.createMenuItem(popup, {label: "Copy"});            menuitem.setAttribute("command", "cmd_copy");        }        var object;        if (this.contextMenuObject)            object = this.contextMenuObject;        else if (target && target.ownerDocument == document)            object = Firebug.getRepObject(target);        else if (target)            object = panel.getPopupObject(target);        this.contextMenuObject = null;        var rep = Firebug.getRep(object);        var realObject = rep ? rep.getRealObject(object, FirebugContext) : null;        var realRep = realObject ? Firebug.getRep(realObject) : null;                if (realObject && realRep)        {            // 1. Add the custom menu items from the realRep            var menu = realRep.getContextMenuItems(realObject, target, FirebugContext);            if (menu)            {                for (var i = 0; i < menu.length; ++i)                    FBL.createMenuItem(popup, menu[i]);            }        }        if (object && rep && rep != realRep)        {            // 1. Add the custom menu items from the original rep            var items = rep.getContextMenuItems(object, target, FirebugContext);            if (items)            {                for (var i = 0; i < items.length; ++i)                    FBL.createMenuItem(popup, items[i]);            }        }                // 1. Add the custom menu items from the panel        if (panel)        {            var items = panel.getContextMenuItems(realObject, target);            if (items)            {                for (var i = 0; i < items.length; ++i)                    FBL.createMenuItem(popup, items[i]);            }        }                // 2. Add the inspect menu items        if (realObject && rep && rep.inspectable)        {            var separator = null;            var items = this.getInspectMenuItems(realObject);            for (var i = 0; i < items.length; ++i)            {                if (popup.firstChild && !separator)                    separator = FBL.createMenuSeparator(popup);                                FBL.createMenuItem(popup, items[i]);            }        }                if (!popup.firstChild)            return false;    },
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/e1d42ad3fad63b72826a4e2ed0726866484c9ac3/chrome.js/clean/extension/content/firebug/chrome.js