I want to create a Firefox addon. Based on this page URL I want to filter a URL.The problem is when I use jpm run command which opens a new instance of Firefox, the instance does not opens any URL at all. I even used an empty index.js file and the problem still remains
Asked
Active
Viewed 88 times
1
-
Success, filter works. – Basilevs Jan 08 '16 at 19:42
2 Answers
0
jpm run
just opens a Firefox instance. You must browse to the url you want to check.
Or you can add this code to your index.js
:
var tabs = require("sdk/tabs");
tabs.open("http://www.example.com");
but be aware that this code will be executed every time you addon loads so you should remove it before publishing your add-on because it'd be very annoying.

matagus
- 6,136
- 2
- 26
- 39
-
I browse but nothing happens. It exactly do nothing when I enter url in address bar and press Enter or Go! – nAviD Jan 08 '16 at 21:16
-
That's a different problem. Please open another question and show the relevant parts of your code. If we didn't see the code we can't help. – matagus Jan 08 '16 at 21:48
0
The opened instance proxy is set to "Use system proxy settings" so the website may not be opened.

nAviD
- 2,784
- 1
- 33
- 54