override firefox components

User Help for Mozilla Firefox
Post Reply
Mikey_T
Guest

override firefox components

Post by Mikey_T »

Hello all,

I was wondering if anyone knows how to override firefox components. I have tried to override the nsHelperAppDlg.js using the manifest file but it didn't seem to work. This is what I did:

override resource:///components/nsHelperAppDlg.js myextension/components/nsHelperAppDlg.js

I've also tried to modify that file straight from the omni.ja file but that didn't work either. Any ideas?

Thanks,
Mikey
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: override firefox components

Post by morat »

Mikey_T wrote:I've also tried to modify that file straight from the omni.ja file but that didn't work either.

Did you remember to purge the caches?

https://developer.mozilla.org/en/Extens ... _4#Caching
https://developer.mozilla.org/en/Settin ... mand_flags
Mikey_T
Guest

Re: override firefox components

Post by Mikey_T »

Yes, I did.

firefox -purgecaches

That doesn't seem to take affect either :( By the way, i'm using firefox 10.0.2
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: override firefox components

Post by morat »

Try to manually purge everything in the cache parent directory.

i.e.

Cache folder
OfflineCache folder
startupCache folder
urlclassifier.pset file
urlclassifier3.sqlite file

The about:cache page shows the cache directory.
Mikey_T
Guest

Re: override firefox components

Post by Mikey_T »

I have even tried to rename some of the component files from omni.ja/components and everything still seems to be working properly. Maybe Firefox doesn't use those files? I cleared all the caches. I'm just stumped :cry:
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: override firefox components

Post by morat »

Dave Townsend wrote:Basically everything under the jsloader directory of omni.jar is a binary version of a shipped component or module.

https://bugzilla.mozilla.org/show_bug.cgi?id=691847#c50

* components/nsHelperAppDlg.js
* jsloader/resource/gre/components/nsHelperAppDlg.js

I do not know how to compile these binary files.

Mikey_T wrote:tried to override the nsHelperAppDlg.js using the manifest file

Override component - possible?
https://groups.google.com/forum/#!topic ... YEBviCniB8

Remember Passwords extension overrides components/nsLoginManager.js
https://addons.mozilla.org/firefox/addon/331315
Mikey_T
Guest

Re: override firefox components

Post by Mikey_T »

Thank you morat. That helps :D
Post Reply