How to check if firebug is installed using javascript?

Here's how to check if Firebug is installed by checking if a firebug image exists: http://webdevwonders.com/detecting-firefox-add-ons/

But it looks like it is a bit dated because the images it uses no longer exist in firebug.

firebug chrome.manifest as follows:

 content firebug content/firebug/ contentaccessible=yes ... 

but in the whole addon I find only one png, and it is placed in the root folder of the addon. But other content is available, for example: chrome://firebug/content/trace.js

Ho

So in gerneral:

How to make available an image that is inside the Firefox Addon SDK?

I am programming an addon and I want to make the ok.png image available to all javascripts in Firefox.

I added an image to the data folder and added chrome.manifest

 content response-timeout-24-hours data/ content response-timeout-24-hours data/ contentaccessible=yes 

But there is no way to call it through a url like

 chrome://response-timeout-24-hours/data/ok.png 

How do the paths connect? which is relative to which?

0
source share
1 answer

I created an error report here.

So, if you want your add-in to be detected, you need a different approach:

you can use PageMod to attach content to a script that will wait for a message from your web application and "reply" by sending another message back to the application. You would know that if you do not receive an answer, your addon is not installed. Check out the documentation for more details:

https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/page-mod

I used this to make my add-on discoverable.

+1
source

All Articles