[fetch] Referrer: Should request constructor fail when parsing referrer fails? (#109)

> The Request constructor must run these steps:
> ...
> 15. If init's referrer member is present, run these substeps:
>    1. Let referrer be init's referrer member.
>    2. If referrer is the empty string, set request's referrer to "no-referrer" and terminate these substeps.
>    3. Let parsedReferrer be the result of parsing referrer with baseURL.
>    4. If parsedReferrer's non-relative flag is set, scheme is "about", and path contains a single string "client", set request's referrer to "client" and terminate these substeps.
>    ...

When the parsing fails, what should we do? I think something such as throwing an error is needed here.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/109

Received on Wednesday, 12 August 2015 03:54:56 UTC