1
votes

I want to create an extension with a protocol handler using firfox addon-sdk. So that if i do shan:something it should redirect to some other url like (www.google.com).

Thanks in advance.

1
Hey Thanks. But i face a problem out of it. It works fine on scratchpad but on do the same using addon-sdk it throws error. - Shankar Us

1 Answers

2
votes

To access Components, i.e. features outside the the SDK modules you will need to use require("chrome") to import those capabilities.

The rest is already covered by the answer that @noitdart linked.