| Summary: | Non-special URLs are not idempotent | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Anne van Kesteren <annevk> | ||||||
| Component: | DOM | Assignee: | Alex Christensen <achristensen> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, beidson, benjamin, cdumez, cmarcelo, cyb.ai.815, ews-watchlist, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=217583 | ||||||||
| Attachments: |
|
||||||||
|
Description
Anne van Kesteren
2020-08-24 00:12:32 PDT
Sorry I missed a lot of the discussion here. Idempotence is good, but adding a dot is a little strange. Were alternative solutions considered? Yeah, see the discussion in https://github.com/whatwg/url/issues/415. But solution seemed best (and had precedent in an implementation) as it would not lead to the introduction of a host where there was none. Created attachment 410014 [details]
Patch
Comment on attachment 410014 [details]
Patch
This first patch is close but not quite perfect. It's tricky in an implementation that serializes while parsing and tries to use the same string if possible.
Created attachment 410190 [details]
Patch
|