[Needlesearch] Making NeedleSearch compatible to SeaMonkey

Ole Hueter ns at psycco.de
Sat Jul 29 00:02:27 EDT 2006


Hi all,

after installing SeaMonkey a few days ago, I noticed that NeedleSearch
is not compatible to it. The current URL is not displayed in the address
bar, the forward/back buttons don't work and tabbed browsing is also
somehow corrupted.

As I want to continue using Needlesearch, I took apart the .jar and
found the code that is responsible for that behaviour. I expected that
it would have something to do with changes in the way Extensions change
the browsers layout due to some design changes between Mozilla 1.7x and
Firefox/SeaMonkey and I would be able to fix them.

But I was wrong, the lines of code not compatible with Seamonkey are

<script type="application/x-javascript">
getBrowser().addEventListener("load", NeedleSearch.init, true);
</script>

and can be found in "needlesearch.xul".
Using a different or even dummy function instead of "NeedleSearch.init"
or changing the handler from "load" to anything else still produces that
strange behaviour of Seamonkey. It's the call of "addEventListener()"
itself.

I have /no/ idea why Seamonkey is doing this. A workaround would be to
call the initialization function some other way, but I don't know how.
But maybe someone of you guys know how to workaround or even fix all
this, so I'm writing to the mailing list. I would love using
Needlesearch with Seamonkey, don't you? :)

Best regards,
Ole Hueter



More information about the Needlesearch mailing list