-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url: fix file state clarification in binding #11123
Conversation
1da577a
to
74fc3b7
Compare
+1 on the change, but I'd rather wait for the spec to update (see whatwg/url#225) before applying this. Official WPT tests can also be found after web-platform-tests/wpt#4700 is merged. |
Wow this is nice:
Then let's wait for the tests to come upstream, and update them when they get merged. After that, I will remove my test from this PR. |
74fc3b7
to
422b139
Compare
Since the PRs on WHATWG and WPT were merged, I've updated this PR. Here is the summary:
|
@nodejs/url Could we possibly update the status of this PR since the spec and the test were already merged into upstream? |
@watilde Do you mean if this is ready to land? There are some CI checks failed so probably need to investigate first(I cannot go look into it right now because the connection to the UI is super slow from here, not sure if it's my connection or the infra?) |
The state of query and fragment in file state clarification should be adjusted after the state of the path is confirmed. Applicable cases: + `file:#foo` => `file:///#foo` + `file:?bar` => `file:///?bar` Fixes: nodejs#10978
Added at the following PR: + web-platform-tests/wpt#4382 + web-platform-tests/wpt#4700
An empty file URL `file:` should be parsed to `file:///` instead of `file://`. In the `kFile` state, the process was braked immediately when the ch is EOL, but it should work as `default` in the kFile state to adjust slashes.
For these two, I have no idea so far since this update shouldn't affect the cases.
Either way, I will do |
422b139
to
e39218b
Compare
New CI: https://ci.nodejs.org/job/node-test-pull-request/6378/ The smartos failure looks unrelated. The freebsd one is... troubling. Running again |
The error on ARM looks unrelated: https://ci.nodejs.org/job/node-test-commit-arm/nodes=ubuntu1604-arm64/7719/console |
An empty file URL `file:` should be parsed to `file:///` instead of `file://`. In the `kFile` state, the process was braked immediately when the ch is EOL, but it should work as `default` in the kFile state to adjust slashes. Applicable cases: * `file:#foo` => `file:///#foo` * `file:?bar` => `file:///?bar` PR-URL: #11123 Fixes: #10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Added at the following PR: * web-platform-tests/wpt#4382 * web-platform-tests/wpt#4700 PR-URL: #11123 Fixes: #10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Landed in 97d111d...4577775 |
An empty file URL `file:` should be parsed to `file:///` instead of `file://`. In the `kFile` state, the process was braked immediately when the ch is EOL, but it should work as `default` in the kFile state to adjust slashes. Applicable cases: * `file:#foo` => `file:///#foo` * `file:?bar` => `file:///?bar` PR-URL: nodejs#11123 Fixes: nodejs#10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Added at the following PR: * web-platform-tests/wpt#4382 * web-platform-tests/wpt#4700 PR-URL: nodejs#11123 Fixes: nodejs#10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
An empty file URL `file:` should be parsed to `file:///` instead of `file://`. In the `kFile` state, the process was braked immediately when the ch is EOL, but it should work as `default` in the kFile state to adjust slashes. Applicable cases: * `file:#foo` => `file:///#foo` * `file:?bar` => `file:///?bar` PR-URL: #11123 Fixes: #10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Added at the following PR: * web-platform-tests/wpt#4382 * web-platform-tests/wpt#4700 PR-URL: #11123 Fixes: #10978 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
The state of query and fragment in file state clarification should be adjusted after the state of the path is confirmed.
Applicable cases:
file:#foo
=>file:///#foo
file:?bar
=>file:///?bar
Fixes: #10978
Checklist
make -j4 test
(UNIX)Affected core subsystem(s)
url