| ▲ | synack 13 hours ago | |||||||
Are they considering all uses of window.history.pushState to be hijacking? If so, why not remove that function from Chrome? | ||||||||
| ▲ | tgsovlerkhgsel 13 hours ago | parent | next [-] | |||||||
Because clicking on a navigation button in a web app is a good reason to window.history.pushState a state that will return the user to the place where they were when they clicked the button. Clicking the dismiss button on the cookie banner is not a reason to push a state that will show the user a screen full of ads when they try to leave. (Mentioning the cookie banner because AFAIK Chrome requires a "user gesture" before pushState works normally, https://groups.google.com/a/chromium.org/g/blink-dev/c/T8d4_...) | ||||||||
| ▲ | kro 12 hours ago | parent | prev | next [-] | |||||||
It's a valid question how they detect it. As there are valid usages, just checking for the existence of the function call would not be correct. These sites likely pushState on consent actions so it appears like any user interaction. | ||||||||
| ||||||||
| ▲ | omcnoe 13 hours ago | parent | prev [-] | |||||||
No, only if your website abuses window.history.pushState to redirect the user to spam/ad content is it considered abuse. | ||||||||