#579 ✓works_for_me
Edward Hurst-Frost

Ajax.Request never completes in Firefox

Reported by Edward Hurst-Frost | March 4th, 2009 @ 04:25 PM

First I'd like to say I love prototypejs, thanks.


I have a fairly complex Ajax application (a game) that I released about 9 months ago using 1.6.0.*. It was fully working in all browsers I cared about including Firefox 2.0.

When Firefox was released I noticed it broke the game. I displayed a user-agent conditional warning on the game to prompt players to upgrade and presumed that Mozilla would fix it.

But since then Mozilla have release 19 and their final version 20. And Ajax is still broken.

The problem

In Firefox

After creating a new Ajax.Request() I never receive a 'success', 'complete' or 'failure' event callback.

To reproduce

The code to reproduce the problem is SO trivial that I really can't believe it's a Firefox or prototype problem (it MUST be me), but I can't see what I'm doing wrong.

I have put my test case on the web, hopefully that's the easiest place for you to try it from: http://lab.hurst-frost.net/sandb...

Steps to reproduce

  • Check the 'Alert Ajax transport events' checkbox.
  • Click the 'Click me' button.

Expected results

  • You should see an alert popup for each of the resulting events 'create','interactive','success','complete'.
  • The 'Running calls' could remains at zero.

Results under Firefox

  • Only the 'create' and 'interactive' callbacks happen.
  • The 'Running calls' couunt increments on each click, and never decrements.

Using Firebug plugin, you can [normally] see that the request is still pending in the Net tab.


The gist of the problem is that with this code on Firefox

  new Ajax.Request(uri, {
    onSuccess:function() { alert('success'); },
    onCreate:function() { alert('create'); },
    onInteractive:function() { alert('interactive'); },
    onComplete:function() { alert('complete'); },
    onFailure:function() { alert('failure'); }

none of the callbacks will occur except onCreate() and onInteractive().

Comments and changes to this ticket

  • Tobie Langel

    Tobie Langel March 4th, 2009 @ 06:14 PM

    • State changed from “new” to “works_for_me”

    Thanks for your report.

    Works for me in Firefox on Mac OS 10.5.6.

    User agent string:

    Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20081217 Firefox/

    Note that your current live test references an old version of Prototype. Could you possibly update it to (latest stable release) ?

    Thank you!

  • Edward Hurst-Frost

    Edward Hurst-Frost March 4th, 2009 @ 06:39 PM

    I have now updated the test page to use But I had been testing against that before, honest.

    I have just found out something rather disappointing though.

    Firstly I'd like to say that this problem has been 100% reproducable to me for a number of months, and I have had a number of application users reporting problems.

    But I have just disabled all the plugins in my Firefox 2, and the problem went away.

    Then I re-enabled them and it didn't come back.

    So unfortunately I now have no way to reproduce it :-(

    The plugins I have are: * DevBoi: Prototype JS Reference ( v0.0.5 * Firebug 1.05 * Google Toobar for Firefox 3.1.20081127W * Java Quick Starter 1.0 * Live HTTP Headers 0.14 * RealPlayer Browser Record Plugin 1.0 * StumbleUpon 3.28 * Talkback v2.0.0.11 (always disabled) * Web Developer 1.1.6

  • Tobie Langel

    Tobie Langel March 4th, 2009 @ 06:55 PM

    Thanks for your update.

    I'm leaving this as works_for_me until I can reproduce it. If you find out more about the issue, please let me know.

    You're the fist person to report it so far, so I suppose it's a very specific problem related to some of your plugins.

    Please feel free to reopen this ticket should you have more information available.

  • Edward Hurst-Frost

    Edward Hurst-Frost March 10th, 2009 @ 05:54 PM

    Just noticed that the problem has came back, can't explain what caused it to come back, haven't modifed ANY add-ons and rarely use that browser.

    Checked my test page, 100% reproducable.

    So did these steps to see what would fix it: * Closed all tabs, restarted FX - test page still fails. * Used Firebug window to disable Firebug, restarted - no change. * Used Firefox Add-ons dialog to disable Firebug, restarted - fixed * Re-enabled Firebug Add-on - still fixed.

    So seems like a Firebug problem, although I'm sure I've had reports from people who don't have Firebug. Will leave Firebug disabled now and see if it comes back.

  • Dee24

    Dee24 April 15th, 2009 @ 11:16 AM

    We had the same problem on our web project - the Ajax scripts worked fine on Firefox but on - 20 none of our Ajax requests worked.

    The problem was solved after we disabled the "RealPlayer Browser Record Plugin 1.0". So it's not a Prototype problem.

    See orignal solution (german only):


  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 12:12 AM

    • Tag changed from,, ajax, ajax.request, ajax.responders.register to ajax
  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 01:54 AM

    • Tag changed from ajax to section:ajax

    [not-tagged:"ajax" tagged:"section:ajax" bulk edit command]

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket