?How-to Invoke Firebug.Inspector from other Firefox extentions

93 views
Skip to first unread message

Brian Richwine

unread,
Oct 18, 2013, 3:06:44 PM10/18/13
to fir...@googlegroups.com
Is there a way to invoke the Firebug inspector to inspect a particular node from another (non-firebug embedded) Firefox extension?

I used to be able to pass the Firebug object to my extension from my extension's overlay.xul file like this:

        <menuitem id="W15yQC_menuEntry_landmarksDialog" accesskey="A" label="ARIA Landmarks"
                  oncommand="try{if(Firebug){Firebug.GlobalUI.startFirebug(function(){blr.W15yQC.openDialog('ariaLandmarks',Firebug);});}else{blr.W15yQC.openDialog('ariaLandmarks',null);}}catch(ex){blr.W15yQC.openDialog('ariaLandmarks',null);}"/>


And, then from a XUL dialog in my extension, I'd invoke Firebug like this:        
 void  function (arg) {
    blr.W15yQC.LandmarksDialog.FirebugO.GlobalUI.startFirebug(function () {
       blr.W15yQC.LandmarksDialog.FirebugO.Inspector.inspectFromContextMenu(arg);
      });
 }(blr.W15yQC.LandmarksDialog.aARIALandmarksList[selectedIndex].node);

However the Firebug hasn't been available using this technique for some time now. Is it possible to detect and invoke Firebug from another extension? Is there an official technique for doing this (that would be stable)?

Thanks a bunch for any help on this. This would be an amazing feature to add to accessibility inspector tools!

-Brian

Jan Honza Odvarko

unread,
Oct 21, 2013, 11:01:52 AM10/21/13
to fir...@googlegroups.com
Does it work if you use:

Firebug.browserOverlay.startFirebug
Firebug.browserOverlay.startFirebug?

Honza
Firebug.browserOverlay.startFirebug
Firebug.browserOverlay.startFirebugFirebug.browserOverlay.startFirebug
Firebug.browserOverlay.startFirebugFirebug.browserOverlay.startFirebug
Reply all
Reply to author
Forward
0 new messages