browser.chrome is undefined at showPanel

202 views
Skip to first unread message

superruzafa

unread,
Aug 7, 2012, 3:01:06 PM8/7/12
to fir...@googlegroups.com
Hi all. Here is a newbie question:

I'm currently playing with Honza's 2nd example of his blog (http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-toolbar-part-ii/) which doesn't work for me. It seems like the browser object passed to showPanel method hasn't the chrome property. Doing some debugging...

showPanel: function(browser, panel) {
alert(browser);        // prints [object XULElement]
alert(browser.chrome); // prints undefined
alert(panel);          // prints [object Object]
alert(panel.name);     // prints HelloWorld
return;
var isHwPanel = panel && panel.name == panelName;
var hwButtons = browser.chrome.$("fbHelloWorldButtons"); // browser.chrome is undefined
collapse(hwButtons, !isHwPanel);
}

Also, I replace old FirebugContext by the new Firebug.currentContext in XUL file.

I'm using Firefox 14.0.1 with Firebug 1.10.2

Any ideas?

Thanks.

Sebastian Zartner

unread,
Aug 8, 2012, 6:52:02 AM8/8/12
to fir...@googlegroups.com, Jan Odvarko

superruzafa

unread,
Aug 8, 2012, 12:40:01 PM8/8/12
to fir...@googlegroups.com
That was the point!

Thanks a lot.


El martes, 7 de agosto de 2012 21:01:06 UTC+2, superruzafa escribió:
Hi all. Here is a newbie question:

I'm currently playing with Honza's 2nd example of his blog (http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-toolbar-part-ii/ ) which doesn't work for me. It seems like the browser object passed to showPanel method hasn't the chrome property. Doing some debugging...

showPanel: function(browser, panel) {
alert(browser);        // prints [object XULElement]
alert(browser.chrome); // prints undefined
alert(panel);          // prints [object Object]
alert(panel.name );     // prints HelloWorld
Reply all
Reply to author
Forward
0 new messages