Ok, so, I don't want to start a new thread, and I don't want to resurrect an almost 1 year old thread about Google Chrome, and I spent an entire day trailing a stupid ass issue and I want to rant about it... and it seems to me that it truly is an unexplained phenomena.
Anyway, I developed a captcha method that seems to work fairly well against some of the stupid bot programs. But some people for some reason beyond me have issues with browsers that won't play nice with form fields that have randomly generated names. Whatever. I wrote a new captcha that does a random math question (I have since seen a similar idea used in a Wordpress plugin).
The problem I came across was Chrome seemed to be reloading the page and then submitting the form when the Submit button is clicked. I checked the session data before sending, and then after, and the expected answer that was stored had changed. WTF?? Checking IE8, no problem. I should have checked Firefox, but really all that matters is it worked with one browser and not another.
What was really getting me was that this method was deployed on several other sites with no issue. Just this one site. So it was driving me batty why Chrome was fucking this up and not others. Finally I figured it out, and its pretty stupid. I had to change the styling of the body element. Originally I had <body style="background: #ffffff;">. After removing that and sticking it in a <style type="text/css"> block in the head, no more problem.
Is that considered a security risk? Seems a bit odd to me. I know that its not ideal to specify the style in the element tag, but I didn't think it violated any rule... Oh well. Its an issue solved and I only wasted an entire fucking day on it. Thanks Chrome.