Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

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
0
bri_smi
Asked:
bri_smi
1 Solution
 
Marc ZCommented:
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

0
 
bri_smiAuthor Commented:
Thanks. I had previously been scouring those as well. No luck, I am surprised given the impact the mootools framework has on firefox behavior. Going to have to convert to jquery.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now