In https://codereview.chromium.org/2433583002, there was some tricky code in parsing externally_connectible match patterns, and a discussion arose about whether it was possible to have non-empty but "invalid" host values returned for an URLPattern.
It looks like in general that the host of an URLPattern should either be empty (meaning it is "*", or matches all hosts), or it should be some valid host that would pass a net::CanonicalizeHost test. (The way host wildcarding like *.google.com works is that the host is set to the valid name "google.com" and match_subdomains_ is set to true).
We could add some code to URLPattern::Parse and URLPattern::SetHost to enforce this.
Comment 1 by sheriffbot@chromium.org
, Oct 26 2017Status: Untriaged (was: Available)