0

I have a working firefox extension that currently consists of a button. When I click that button, my XUL file declares oncommand="test();" which simply is an alert("hi!"); .

I am including the file like this:

  <script type="application/x-javascript"
    src="chrome://myfirstextension/content/resultscollector.js" />

the resultscollector.js file is right where it should be in \content , but this does not work.

But, when I simply move the file into another extensions content folder that I am testing, and change the URL I am accessing to reflect that (chrome://myotherfirstextension/content/resultscollector.js) - it works!

To add to the confusion, though both extensions show up under tools -> addons and view -> toolbars, and for that matter, on the actual toolbar, I can browse to chrome://myotherfirstextension/content/overlay.xul, whereas an attempt to browse to myfirstextensions' overlay file fails (the locationbar simply won't allow me to press enter).

If anyone can help with this, it would be greatly appreciated.

1 Answer 1

1

I think your chrome registration is wrong, take a look at this MDC article

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.