Hacker News new | ask | show | jobs
by peterbmarks 1755 days ago
Is it just me or does this site prevent the browser back button from working? I hate that!
3 comments

Same here. Sometimes I wish the web was simpler and the history API was not a thing. Or barring that, that the browser would pop up a permissions prompt when a page attempted to access the history API.
Speaking of, there should probably also be a permission prompt when the site wants to use a 1GB hash map.
The back button in Chromium type browsers should ignore history entries added before a page receives a user gesture [0]. That did not seem to happen here!

You can try it yourself by loading a YouTube video via pasting into the URL box and letting it autoplay a few videos. The back button should take you to the new tab page. If you click anywhere on the page then those autoplay entries will not be skipped by the back button.

[0] https://bugs.chromium.org/p/chromium/issues/detail?id=907167

It's tumblr-powered, so ¯\_(ツ)_/¯