[whatwg/url] Make URL's origin getter return null for file URLs (#506)

While we don't (want to) govern (yet) if one file URL can fetch another, we can at least govern that the origins file URLs hand out always serialize to "`null`".

That is, I would make the getter explicitly check if URL's scheme is "`file`" and if so, return "`null`". No need to go through all the trouble of defining a file URL origin I think as navigating to file URLs isn't defined.

This affects Safari and Chrome, neither of which return "`null`" yet for any non-special URLs as far as I can tell.

cc @achristensen07 @mikewest 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/506

Received on Sunday, 10 May 2020 06:15:59 UTC