MozillaZine

override firefox components

User Help for Mozilla Firefox
Mikey_T
Guest
 

Post Posted April 12th, 2012, 11:17 am

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: 2447
Joined: February 3rd, 2009, 6:29 pm

Post Posted April 12th, 2012, 12:09 pm

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
 

Post Posted April 12th, 2012, 1:34 pm

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: 2447
Joined: February 3rd, 2009, 6:29 pm

Post Posted April 12th, 2012, 5:38 pm

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
 

Post Posted April 13th, 2012, 11:51 am

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: 2447
Joined: February 3rd, 2009, 6:29 pm

Post Posted April 13th, 2012, 1:32 pm

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
 

Post Posted April 13th, 2012, 4:06 pm

Thank you morat. That helps :D

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 11 guests