Ask HN: Does clicking voting arrows *sometimes* take you to a blank page?
I'm using Safari / WebKit nightly.
I'm using Safari / WebKit nightly.
1. Make sure you're logged out. 2. Open two HN pages. 3. Log in on one of them. 4. Click an up arrow on the other page (the one where you're not logged in). 5. The vote will get counted, but you'll be sent to a blank page.
I always figured it was a failure of the AJAX to check login status.
Reloading the page (which at that point is the previous page) gets rid of the problem.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2009010220 Gentoo Firefox/3.0.5
Seems to fit with explanation from maryrosecook above, I'm often logged out.
I can't see anything at first glance that would throw an exception, however.
* Visit homepage * Click on some story link * Hit the back button to go back to the homepage * Try to vote up the link
It consistently happened any time I tried to vote after hitting the back button. The solution was to always refresh the page after hitting the back button. However, a recent nightly upgrade fixed the problem for me. Are you running the latest WebKit?
Nothing to see here, move on please.
Anyway, if this or the equivalent were hidden somewhere in your code, and it wasn't supposed to be, would you not consider it a bug just because it only happened 1 in 10,000 runs or so?
if (rand() % 10000 == 0)
exit(0);