diff options
author | Kingsley Yung <kingsley@kkoyung.dev> | 2025-03-09 00:04:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-08 16:04:42 +0000 |
commit | d0a306729ddb40a575475818d2455c434a613d28 (patch) | |
tree | c4d04b3d6173d9578a06bca7975832956973d85e /tests/wpt/meta/html | |
parent | aa76847502f01501ee31513ee286f79573b903b8 (diff) | |
download | servo-d0a306729ddb40a575475818d2455c434a613d28.tar.gz servo-d0a306729ddb40a575475818d2455c434a613d28.zip |
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>
Diffstat (limited to 'tests/wpt/meta/html')
5 files changed, 3 insertions, 38 deletions
diff --git a/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html.ini b/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html.ini index 0803a1f413f..c2b36b37150 100644 --- a/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html.ini +++ b/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html.ini @@ -1,6 +1,3 @@ [iframe-src-204-pushState-replaceState.html] [history.pushState] expected: FAIL - - [history.replaceState] - expected: FAIL diff --git a/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-pushState-replaceState.html.ini b/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-pushState-replaceState.html.ini index 101e23abcb8..5b6ec689cb7 100644 --- a/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-pushState-replaceState.html.ini +++ b/tests/wpt/meta/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-pushState-replaceState.html.ini @@ -1,6 +1,7 @@ [window-open-204-pushState-replaceState.html] + expected: TIMEOUT [history.pushState] - expected: FAIL + expected: TIMEOUT [history.replaceState] - expected: FAIL + expected: NOTRUN diff --git a/tests/wpt/meta/html/browsers/history/the-history-interface/history_pushstate_url_rewriting.html.ini b/tests/wpt/meta/html/browsers/history/the-history-interface/history_pushstate_url_rewriting.html.ini deleted file mode 100644 index bdac3c0581f..00000000000 --- a/tests/wpt/meta/html/browsers/history/the-history-interface/history_pushstate_url_rewriting.html.ini +++ /dev/null @@ -1,27 +0,0 @@ -[history_pushstate_url_rewriting.html] - [blob:(a blob URL for this origin) to blob:(a blob URL for this origin)?newsearch should not work] - expected: FAIL - - [blob:(a blob URL for this origin) to blob:http://web-platform.test:8000/syntheticblob should not work] - expected: FAIL - - [blob:(a blob URL for this origin) to blob:(another blob URL for this origin) should not work] - expected: FAIL - - [about:blank to about:blank should work] - expected: FAIL - - [about:blank to about:blank#newhash should work] - expected: FAIL - - [about:srcdoc to about:srcdoc should work] - expected: FAIL - - [about:srcdoc to about:srcdoc#newhash should work] - expected: FAIL - - [data:(script to run this test) to data:(script to run this test) should work] - expected: FAIL - - [data:(script to run this test) to data:(script to run this test)#newhash should work] - expected: FAIL diff --git a/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-pushState.html.ini b/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-pushState.html.ini deleted file mode 100644 index 2790024adc1..00000000000 --- a/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-pushState.html.ini +++ /dev/null @@ -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 diff --git a/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-replaceState.html.ini b/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-replaceState.html.ini deleted file mode 100644 index 72fd909874f..00000000000 --- a/tests/wpt/meta/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-history-replaceState.html.ini +++ /dev/null @@ -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 |