發佈於: 點閱數:2916


Google對此已有回應,這些網站頁面使用戶很難或不可能通過瀏覽器「回上一頁」按鈕返回原先的頁面。這是通過重新導向或操控瀏覽器歷史記錄來達成的,並導致濫用和惱人的用戶體驗。Google將通過阻止任何不涉及用戶輸入的行為來解決這個問題,這意味著按下後退按鈕將獲得預期的結果,並且不允許複雜的代碼進行干預。瀏覽器「回上一頁」按鈕的新行為將會跳過新增歷史記錄條目或重新導向用戶頁面,但是同時又不會影響到history.back/forward API。


PSA: History Manipulation Intervention - Google 網上論壇


Some pages makes it difficult or impossible for the user to go back to the page they came from via the browser back button. This is accomplished by redirects or by manipulating the browser history and results in an abusive/annoying user experience.

The new behavior of the browser’s back button will be to skip over pages that added history entries or redirected the user without ever getting a user gesture. Note that the intervention only impacts the browser back/forward button UI and not the history.back/forward APIs.

Here’s an example:

User is on and clicks to go to adds a history entry using pushState or navigates the user to another page ( without ever getting a user gesture. will then be skipped if the user presses back and user will directly be navigated to

Given the above, developers should be aware that if they want the browser’s back button to land on a page that redirected after loading, then that page should have had a user gesture before redirecting. Developers should also be aware that if a history entry is added but there is no user gesture by the time the user hits back, the page adding the history entry will be skipped and the popstate event will not fire.

This feature will be supported on all six Blink platforms (Windows, Mac, Linux,Chrome OS, Android, and Android WebView).



[email protected]官網