Skip to main content

Bug Tracker

Side navigation

#4797 closed bug (worksforme)

Opened June 20, 2009 09:08PM UTC

Closed October 15, 2010 10:02PM UTC

Firefox crash with label click handler setting display: block and hiding container

Reported by: coreyti Owned by:
Priority: low Milestone: 1.4
Component: event Version: 1.3.2
Keywords: firefox crash Cc: corey@coolerator.net
Blocked by: Blocking:
Description

The following handler reliably crashes OS X Firefox (version 3.0.11, tried on 3 computers):

$(function() {
  $('label').click(function() {
    // order is important...
    $(this).css('display', 'block');
    $('div#container').hide();
  });
});

Attempted to create a unit test on jQuery source, but programmatic clicks do not cause the crash.

See attached html for a crashing example with notes. Also, a patch is included with a potential fix.

Attachments (2)
Change History (2)

Changed October 09, 2010 03:24AM UTC by addyosmani comment:1

component: fxevent
need: ReviewPatch
priority: majorlow

I can confirm that this issue crashes FireFox 3 using the above submitted code (on both Windows and OSX), also found here: http://jsfiddle.net/addyosmani/qUhc2/

This bug does not affect FireFox 3.5 and above.

In case it would assist the patcher, current statistics show that between 3-4% of users are currently still using FireFox 3.0 and have yet to upgrade.

Changed October 15, 2010 10:02PM UTC by snover comment:2

resolution: → worksforme
status: newclosed

I am not able to reproduce a crash in the latest version of Firefox 3.0 (3.0.19).