Comment on Websites that hijack your back button must stop by June 15 or face Google's wrath

lvxferre@mander.xyz ⁨9⁩ ⁨hours⁩ ago

I’ll expand here what I mentioned in another comm.

Most back button hijacking relies on the browser history API. Further info here: “The replaceState() method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters.”

So for example. You visited site A, then site B. Your browser stores this as “user went A then B”, so if you click the “back” button while navigating B, it sends you back to A. However Javascript in the site B can tell your browser “no, the user didn’t visit A then B. They visited C then B”. So as you click “back” you’re sent to a third site you never visited.

Why is this anti-feature there on first place? Why are sites even allowed to interact with your history? Because corporations really, really, really want to know your browsing history: which sites are directing traffic to it site, which pages within that site you visited (imagine those pages show you products you might potentially buy), so goes on. It has practically no reason to exist for non-commercial sites. Now remember Google is a corporation, it profits the most from advertisement, and has a role in the web standards, and you’ll notice Google was at least partially responsible for this anti-feature.

And now, the same Google is using its monopoly over search to dictate which should be the rules for the usage of the anti-feature it added. As if the internet was Google’s property: it’s who decides which features should be on the internet, and how you’re allowed to use them.

Moral of the story is: even if it looks like Google is doing something good, remember they were responsible for this mess on first place.

source
Sort:hotnewtop