URL.protocol setter should forbid switching between special and non-special schemes
Created attachment 436239 [details] Patch
<rdar://problem/82549495>
This seems to be a low hanging fruit. And that would fix some of the failing tests in https://wpt.fyi/results/url?label=master&label=experimental&aligned&q=safari%3Afail%20chrome%3Afail%20firefox%3Apass
https://github.com/whatwg/url/issues/674 ended up being filed later in the year so we'll have to be cautious with this one. Might be good if other browsers tackle this first. Or we could push a specification change, but the alternative solution isn't exactly great.
So Firefox shipped this first, and they got in two months a first webcompat bug report. https://github.com/whatwg/url/issues/674#issuecomment-1701304722 https://bugzilla.mozilla.org/show_bug.cgi?id=1850954 Chrome has fixed it (but will be shipped for 118 in ~5 weeks) https://bugs.chromium.org/p/chromium/issues/detail?id=1416018 (Chrome 118).