Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mootools in Firefox Extension Conflits w/Bookmark This Page Dialog

Posted on 2010-08-31
2
Medium Priority
?
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

670 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