Re: [whatwg/url] Allow protocol setter to switch between special and non-special schemes (Issue #674)

Hi folks,

We've finally shipped the special scheme to non-special scheme restriction in [bug 1347459](https://bugzilla.mozilla.org/show_bug.cgi?id=1347459) in Firefox 117, but a regression has been reported: [Bug 1850954 - Cant change URL.protocol since v117](https://bugzilla.mozilla.org/show_bug.cgi?id=1850954)

Chrome has also landed this recently in https://bugs.chromium.org/p/chromium/issues/detail?id=1416018 , which isn't yet in release.

Is there a better way for sites to change the scheme other than this?
> new URL("customprotocol://" + oldUrl.host + oldUrl.pathname + oldUrl.search + oldUrl.hash)

Do we commit to this restriction or is there any intent to allow special/non-special protocol changes?

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

Message ID: <whatwg/url/issues/674/1701304722@github.com>

Received on Thursday, 31 August 2023 15:54:55 UTC