jQuery Not Working correctly on Firefox 33.1

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Post Reply
mahyarss
Posts: 1
Joined: November 15th, 2014, 3:22 pm

jQuery Not Working correctly on Firefox 33.1

Post by mahyarss »

Hi,
I have some problems with new updates of Firefox.
In my websites (All built with Drupal) jQuery crashed or not work correctly, must close firefox and open it again!

No warning & error in firebug!

For example:
In user registration form (http://example/user/register)
"password-suggestions" is not displayed ( simple jQuery to display: block div.password-suggestions ).

Or my custom js:

Code: Select all

(function ($, Drupal, window, document, undefined) {
  $('#myId').click(function(){
    console.log('My ID Clicked');
  });
})(jQuery, Drupal, this, this.document)


But when i test in chrome and other browsers it works.

My firefox version is 33.1
- I cleared all caches
- Reset browser in "troubleshooting information"
- Uninstall & install again

Nothing changed. #-o

Please help [-o<
Thanks
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: jQuery Not Working correctly on Firefox 33.1

Post by LoudNoise »

moving to Web Dev
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
jeffere
Posts: 1
Joined: November 18th, 2014, 12:46 pm

Re: jQuery Not Working correctly on Firefox 33.1

Post by jeffere »

I think this needs to be moved to Firefox bugs forum ASAP. This is the only mention of this bug that I can find but it seems huge.

I have the same problem but not with drupal. Our sites are using jquery (jquery-1.8.3) with normal event bindings like clicks on elements like this:

Code: Select all

   
$( ".elementOnPage" ).click( function() {
    console.log('elementOnPage clicked');
});


They work for a while but then all of a sudden they stop working. Refreshing the page does nothing nor does clearing cache or anything the OP said.

I have to exit Firefox and restart it.

This happened two Firefox updates ago, I let it slide figuring the next patch would fix it but its still broken in 33.1.1 so I think 33.1.0 is where it was introduced but not positive.

Reproduction steps:

1. Start Firefox
2. Browse to a site that uses jquery
3. Use it for a while
4. All of a sudden bound clicks stop working. Breakpoints aren't even hit. Its like it looses all the bindings. Normal hyperlinks on a page still work but nothing bound with jquery.

At this point you must exit Firefox and restart then all is well until it stops again. No triggers that cause it to stop that I can identify.

This is a huge bug that's going to cause all kinds of sites to stop working.
User avatar
jscher2000
Posts: 11762
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: jQuery Not Working correctly on Firefox 33.1

Post by jscher2000 »

Can you link to a site that has this problem in Firefox 33.1 or higher, and describe what steps you are taking on the site? Lots of sites use jQuery, but there might be some other ingredients to the problem.

Also, to rule out a problem with an extension, can you reproduce the problem in Firefox's Safe Mode? You can restart Firefox in Safe Mode using either:

* "3-bar" menu button > "?" button > Restart with Add-ons Disabled
* Help menu > Restart with Add-ons Disabled

Not all add-ons are disabled: Flash and other plugins still run

After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
Post Reply