Bug 21980

Summary: KURL doesn't normalize the number of slashes after the scheme
Product: WebKit Reporter: Brett Wilson (Google) <brettw>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: abarth, annevk, ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 37641    

Description Brett Wilson (Google) 2008-10-30 12:29:58 PDT
"http:apple.com" and "http:/apple.com" both load and display the incorrect URL in the URL bar.

"http:///apple.com" is converted to "http:/apple.com" for reasons I don't understand (maybe NSURL does this).

In IE, all of these loads fail. In Firefox, they are all converted to "http://apple.com". Firefox's behavior is better. For known hierarchical schemes such as http, the URL should be treated as hierarchical no matter how many slashes there are, and normalized accordingly.
Comment 1 Alexey Proskuryakov 2008-10-31 03:36:51 PDT
Just a side note. This may also be related to file: URLs behavior. Last I checked (long ago), it seemed quite funky in Windows Safari.
Comment 2 Anne van Kesteren 2023-05-22 03:46:08 PDT
KURL is gone, but we also normalize these correctly now.