An empty string to URL.prototype.port sets the port to null
KURL::SetPort("") will yield a port of "0", use ḰURL::RemovePort instead
which does the equivalent of what the spec says:
"2. If the given value is the empty string, then set context object’s
url’s port to null."
https://url.spec.whatwg.org/#dom-url-port
Bug: 971684
Change-Id: I68b218f5e7a596a54944be05a51a32fd93fbf677
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1658153Reviewed-by:
Mike West <mkwst@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#670027}
Showing
Please register or sign in to comment