Implement can-have-its-url-rewritten for history api (#35864)

Implement the helper function to verify whether the document can have
its URL rewritten to a new URL.
https://html.spec.whatwg.org/multipage/nav-history-apis.html#can-have-its-url-rewritten

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
Kingsley Yung 2025-03-09 00:04:42 +08:00 committed by GitHub
parent aa76847502
commit d0a306729d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 62 deletions

View file

@ -1,3 +0,0 @@
[iframe-loading-lazy-history-pushState.html]
[History state change for iframe loading='lazy' before it is loaded: history.pushState]
expected: FAIL

View file

@ -1,3 +0,0 @@
[iframe-loading-lazy-history-replaceState.html]
[History state change for iframe loading='lazy' before it is loaded: history.replaceState]
expected: FAIL