Very Strange Firefox Issue

jk2addict on 2007-10-26T15:00:11

There's a long standing bug/feature with Firefox with input type=image elements where user has images turned off, or the image is 404ed, or just not loaded...when it's clicked, no x/y coords are sent to the server.

Just this week, we've had complaints from users getting an error on our site they shouldn't. As it turns out, they get the error because we check to make sure button.x and button.y have values...but firefox is passing them without values.

Now, for the odd part. This is happening to people who by all appearances, have the image loaded. My firefox 2/3 work just dandy, yet we have one internal user who gets the error (but the image is loaded via a provided screenshot).

I have no idea what the hell is going on, but it's damn strange. This is about as much fun as the other gecko bug I found in the old Compuserve7 version, where if you used javascript to hide a button after it was clicked, the browser for post literally sent Content-Length: 0.


Possible reason:

dorward on 2007-10-26T15:17:39

Is the form being submitted by pressing the enter key instead of clicking on the image map?

Re:Possible reason:

jk2addict on 2007-10-26T15:46:00

Nope. I tried that too. hitting enter when the button is highlighted works just fine.

Re:Possible reason:

dorward on 2007-10-26T15:57:06

What if the button isn't highlighted? Browsers are supposed to submit (simple) forms without needing to go near a submit button of any kind.

Re:Possible reason:

jk2addict on 2007-10-26T15:57:38

I lied. Good call.

In Firefox 2.x, Return does indeed cause the issue as no x/y is sent. In Firefox 3.x, Return does not cause the issue, and it appears to send x/y.

And the internal user who is having the problems... is clicking the button with a mouse, not hitting Return.

This far, Firefox refused to fix the bug when no image was loaded, claiming that the image[map] might have more than on function when clicked. However, then they go ahead and fix the Return key in 3.x, which means they just broek their own ruling. Sigh.

WTF.

Re:Possible reason:

jk2addict on 2007-10-26T17:10:05

Faaaaaaaaarrrrrrrrrrgggg!!!!!

Before I went to lunch, I couldn't reproduce it. Now that I'm back from lunch, CLICKING on the button in Fox 2.0.0.8 now does not send coords. W..T..F.