News for hackers. Stuff that matters.
Re:Abusing the HTML5 History API for fun (and chaos) by pak on Monday March 07, 2011 @06:54PM (#2299240)
OK, but websites have used alert() since the dawn of time to trap you on the site with an endless stream of annoying modal dialogs. If this ever catches on, browsers will do exactly what most have done with alert(): if the webpage calls it more than X times a second, the browser asks you, "Do you want to allow Site X to continue to screw with your location bar?" and you can say No.
Re:Abusing the HTML5 History API for fun (and chaos) by getsat on Tuesday March 08, 2011 @01:07AM (#2300027)
> browsers will do exactly what most have done with alert()

In case anyone was wondering why pak said "most"... this is somewhat scary: https://bugzilla.mozilla.org/show_bug.cgi?id=59314

Re:Abusing the HTML5 History API for fun (and chaos) by rflrob on Monday March 07, 2011 @08:48PM (#2299493)
It isn't too likely to catch on, I think. Unlike the modal alert()s, changing the address bar doesn't prevent one from just closing the tab that has the page in it. Sure, you lose whatever history got you to that site, but I find my history is rarely more than 5-10 links deep, since I tend to spawn new tabs rather than using the current one.
Re:Abusing the HTML5 History API for fun (and chaos) by ItsBilly on Tuesday March 08, 2011 @04:11PM (#2302602)
It does for me anyway, in Chrome. It makes it nearly impossible to close the tab.