Solved

Mootools in Firefox Extension Conflits w/Bookmark This Page Dialog

Posted on 2010-08-31
2
408 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:Marc Z
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
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…

774 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