Bug tracker web interface sometimes records submissions twice (with firefox)

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Tue Jul 28 14:40:00 PDT 2009


YONETANI Tomokazu wrote:
Assignment to a property of non-existent `event' raises an exception, so
submit_once() can't return false.
    try {
	event.returnValue = 0;    // work-around for IE
    } catch (e) {}
That doesn't work, still can submit twice.  Even this code doesn't work:
submitted = 0;
function submit_once() {
    if (++submitted > 1) {
        alert("Your request is being processed.\nPlease be patient.");
        try {
            event.returnValue = 0;    // work-around for IE
        } catch (e) {}
        return 0;
    }
    return 1;
}
Seems to be some race condition in javascript/firefox?

cheers
  simon
--
  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low CHF NOW!1  +++     Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




More information about the Bugs mailing list