Repository navigation
script: Use encoding_parse_a_url in Location assign - #44298
Conversation
|
It should be possible to write a test for this that:
|
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#60129) with upstreamable changes. |
Signed-off-by: Kelechi Ebiri <[email protected]>
Co-authored-by: Josh Matthews <[email protected]> Signed-off-by: TG199 <[email protected]>
Co-authored-by: Josh Matthews <[email protected]> Signed-off-by: TG199 <[email protected]>
Signed-off-by: Kelechi Ebiri <[email protected]>
Signed-off-by: Kelechi Ebiri <[email protected]>
4f1a754 to
f9eeb4d
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60129). |
jdm
left a comment
There was a problem hiding this comment.
Looks good, but we should keep the existing behaviour that matches the specification.
| // Step 2: Let url be the result of encoding-parsing a URL given the given value, relative to the entry settings object. | ||
| let base_url = self.entry_settings_object().api_base_url(); | ||
| let url = match base_url.join(&value.0) { | ||
| let url = match self.window.Document().encoding_parse_a_url(&value.0) { |
There was a problem hiding this comment.
We should keep using the entry settings object here.
| // Step 2. Let urlRecord be the result of encoding-parsing a URL given url, relative to the entry settings object. | ||
| let base_url = self.entry_settings_object().api_base_url(); | ||
| let url = match base_url.join(&url.0) { | ||
| let url = match self.window.Document().encoding_parse_a_url(&url.0) { |
Signed-off-by: Kelechi Ebiri <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60129). |
5819f5e to
8729c8f
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60129). |
|
⛔ Failed to properly merge the upstream pull request (web-platform-tests/wpt#60129). Please address any CI issues and try to merge manually. |
Use "encoding-parse a URL" algorithm in Location
Testing: ./mach test-wpt tests/wpt/tests/html/browsers/history/the-location-interface
Fixes: #43506