Setting URL.hash to '#' should preserve '#'
Created attachment 404273 [details] Patch
Created attachment 404558 [details] Patch
Created attachment 404707 [details] Patch
The equivalent patch landed today in Chrome: https://chromium-review.googlesource.com/c/chromium/src/+/2302696
Committed r264599: <https://trac.webkit.org/changeset/264599> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404707 [details].
<rdar://problem/65822989>
Comment on attachment 404707 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404707&action=review > Source/WebCore/html/URLDecomposition.cpp:245 > + auto newFragment = value.startsWith('#') ? StringView(value).substring(1) : StringView(value); Not new to this patch, but just noticed: Should just be "value" instead of "StringView(value)" in the two places on this line.