-
Notifications
You must be signed in to change notification settings - Fork 139
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
No need for null passwords #186
Conversation
It turns out that preserving the ability to serialize an empty string password is not something any implementation supports. Fixes #181.
To be fair, I haven't tested Safari TP yet, and they went to a lot of trouble to become spec-compliant, so we should check that first... I'm heading into work (and thus to my testing Mac) so I should be able to get back to you soon. |
Safari TP normalizes it away. I checked. |
The difference between Firefox and others is with |
URL Standard change: whatwg/url#186.
<p>If <var>url</var>'s <a for=url>username</a> is not the empty string | ||
or <var>url</var>'s <a for=url>password</a> is non-null, run these substeps: | ||
<p>If <var>url</var>'s <a for=url>username</a> or <a for=url>password</a> is not | ||
the empty string, then: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably use the "includes credentials" concept?
This aligns with whatwg/url#186.
URL Standard change: whatwg/url#186.
This aligns with whatwg/url#186.
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186. Fixes: nodejs#10595
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: #10601 Fixes: #10595 Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: nodejs#10601 Fixes: nodejs#10595 Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: nodejs#10601 Fixes: nodejs#10595 Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: nodejs#10601 Fixes: nodejs#10595 Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: nodejs#10601 Fixes: nodejs#10595 Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Properly handle empty username or password Imports test changes from: web-platform-tests/wpt@e001240 Related URL spec changes: whatwg/url#186 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/406) <!-- Reviewable:end -->
It turns out that preserving the ability to serialize an empty string
password is not something any implementation supports.
Fixes #181.