[whatwg/url] Restrict setting protocol to "file" (#269)

As file URLs cannot have username/password/port we don’t want to allow
changing the scheme of a URL that contains one or more of those
components.

Fixes #259.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/269

-- Commit Summary --

  * Restrict setting protocol to "file"

-- File Changes --

    M url.bs (3)

-- Patch Links --

https://github.com/whatwg/url/pull/269.patch
https://github.com/whatwg/url/pull/269.diff

-- 
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/pull/269

Received on Friday, 10 March 2017 08:56:58 UTC