Link to home
Start Free TrialLog in
Avatar of bri_smi
bri_smi

asked on

Mootools in Firefox Extension Conflits w/Bookmark This Page Dialog

Hi Everyone,

I have had an issue with an extension conflict and just figured out it is related to using mootools-1.2.4-core-yc.js. When the script is loaded in a browser overlay XUL file there are two conflicts I have seen.

1. If you bookmark a new page, you do not receive the "Edit This Bookmark" dialog which you typically are prompted with.

2. It just so happens it also conflicts with the Gmail Checker extension. When you select "Check mail now" rather than going off and checking my mail I am prompted with the "Gmail Checker - Login" dialog and can not close the window. I need to use task manager to kill the session.

Of course I am more concerned about impacting default Firefox behavior (#1), but it is rude to impact other extensions as well.

I have attached a simple menu item example XPI built from the firefox addon builder (you need to extract the zip file, and remove the .txt from files in the root, defaults & chrome\content directories then rezip and rename to xpi). I added the mootools files (compressed and uncompressed) in the content directory and inserted the javascript in the xul file. If you install this it will conflict with the bookmark dialog.

You can rem out the script include for mootools repackage and run to see it is clearly the mootools file.

When I substitute that with the jquery.js, I don't run into the same conflicts. Do I need to bite the bullet and convert everything to jquery? Or is there a way to prefix the functions of a third party js file in a namespace to avoid this conflict?

Any help or ideas would be greatly appreciated.

Thanks,
Brian
mootooltest.zip
Avatar of Marc Z
Marc Z
Flag of United States of America image

sorry bri_smi - your question is out of my league here.  Since no one's been able to help you yet,
These sites and forums may help you better.
http://forums.mozillazine.org/viewtopic.php?f=19&t=419695

http://forums.mozillazine.org/viewforum.php?f=53

https://addons.mozilla.org/en-US/firefox/developers
https://developer.mozilla.org/en-US/


https://developer.mozilla.org/en

ASKER CERTIFIED SOLUTION
Avatar of bri_smi
bri_smi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial