Clarification: how are origins compared for equality? #468
In https://fetch.spec.whatwg.org/#concept-main-fetch, main fetch step 11 includes a test:
which includes an equality test between origins, but it is not clear which equality is meant. The lhs is "request’s current url’s origin", so its domain is always
or by https://fetch.spec.whatwg.org/#concept-fetch, step 2:
which may have a domain.
I think what's intended is that the origins are to be compared as being same-origin (https://html.spec.whatwg.org/multipage/browsers.html#same-origin) that is the domain is ignored. However, the way the spec is currently written, it looks like syntactic identity is being used, so the test will fail if the client has set
Should the test here be "request’s current url’s origin is the same as request’s origin and CORS flag is unset"?
In general, it would be really really nice for Servo if the Fetch spec never touched origin domains, since those are mutable due to