RESOLVED FIXED 214318
Setting URL.hash to '#' should set empty fragment
https://bugs.webkit.org/show_bug.cgi?id=214318
Summary Setting URL.hash to '#' should set empty fragment
Rob Buis
Reported 2020-07-14 13:25:27 PDT
Setting URL.hash to '#' should preserve '#'
Attachments
Patch (8.02 KB, patch)
2020-07-14 13:35 PDT, Rob Buis
no flags
Patch (7.84 KB, patch)
2020-07-17 06:50 PDT, Rob Buis
no flags
Patch (7.90 KB, patch)
2020-07-20 03:14 PDT, Rob Buis
no flags
Rob Buis
Comment 1 2020-07-14 13:35:09 PDT
Rob Buis
Comment 2 2020-07-17 06:50:00 PDT
Rob Buis
Comment 3 2020-07-20 03:14:41 PDT
Rob Buis
Comment 4 2020-07-20 05:18:48 PDT
The equivalent patch landed today in Chrome: https://chromium-review.googlesource.com/c/chromium/src/+/2302696
EWS
Comment 5 2020-07-20 06:51:19 PDT
Committed r264599: <https://trac.webkit.org/changeset/264599> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404707 [details].
Radar WebKit Bug Importer
Comment 6 2020-07-20 06:52:17 PDT
Darin Adler
Comment 7 2020-07-20 10:32:32 PDT
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.
Note You need to log in before you can comment on or make changes to this bug.