Solved

Mootools in Firefox Extension Conflits w/Bookmark This Page Dialog

Posted on 2010-08-31
2
406 Views
Last Modified: 2013-12-07
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
Comment
Question by:bri_smi
2 Comments
 
LVL 30

Expert Comment

by:mtz1of4
ID: 33690314
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
 

Accepted Solution

by:
bri_smi earned 0 total points
ID: 33712086
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now