Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I redirect 404 errors in my add-on?

1 view
Skip to first unread message

Chris Shearer Cooper

unread,
Nov 2, 2009, 5:43:09 PM11/2/09
to
I'm writing an add-on in C++ (I know, Firefox add-ons are supposed to
be in JavaScript) and my observer is seeing "http-on-modify-request"
and then "http-on-examine-response", and when the response status is
set to 404, I would like to load a page of my design and do some
helpful stuff.

How can I tell Firefox to load my page at this point? Since I'm in C+
+, there are a lot of objects I'm not allowed access to, apparently.

Thanks,
Chris

0 new messages