History: update document URL on pushState/replaceState

https://html.spec.whatwg.org/multipage/#dom-history-pushstate
Steps 6, 7, 10
This commit is contained in:
Andrew Shu 2018-04-18 13:30:22 -07:00
parent 3695fc4efc
commit 68c4791c7d
11 changed files with 39 additions and 76 deletions

View file

@ -1,7 +0,0 @@
[008.html]
[history.pushState URL resolving should be done relative to the document, not the script]
expected: FAIL
[history.replaceState URL resolving should be done relative to the document, not the script]
expected: FAIL

View file

@ -1,13 +0,0 @@
[009.html]
[HTTP Referer should use the pushed state]
expected: FAIL
[document.referrer should use the pushed state]
expected: FAIL
[HTTP Referer should use the replaced state]
expected: FAIL
[document.referrer should use the replaced state]
expected: FAIL

View file

@ -1,13 +0,0 @@
[010.html]
[HTTP Referer should use the pushed state (before onload)]
expected: FAIL
[document.referrer should use the pushed state (before onload)]
expected: FAIL
[HTTP Referer should use the replaced state (before onload)]
expected: FAIL
[document.referrer should use the replaced state (before onload)]
expected: FAIL

View file

@ -1,7 +0,0 @@
[011.html]
[pushed location should be reflected immediately]
expected: FAIL
[pushed location should be retained after the page has loaded]
expected: FAIL

View file

@ -1,7 +0,0 @@
[012.html]
[replaced location should be reflected immediately]
expected: FAIL
[replaced location should be retained after the page has loaded]
expected: FAIL

View file

@ -1,4 +0,0 @@
[history_pushstate_err.html]
[history pushState SECURITY_ERR]
expected: FAIL

View file

@ -1,4 +0,0 @@
[history_replacestate_err.html]
[history replaceState SECURITY_ERR]
expected: FAIL

View file

@ -1,8 +1,5 @@
[location_hash.html]
type: testharness
[location hash]
expected: FAIL
[Setting location.hash on srcdoc iframe]
expected: FAIL

View file

@ -1,5 +0,0 @@
[location_search.html]
type: testharness
[location search]
expected: FAIL

View file

@ -1,8 +0,0 @@
[formAction_document_address.html]
type: testharness
[Check if button.formAction is the document's new address when formaction content attribute is missing and pushState has been used]
expected: FAIL
[Check if input.formAction is the document's new address when formaction content attribute is missing and pushState has been used]
expected: FAIL