Bug 21980 - KURL doesn't normalize the number of slashes after the scheme
Summary: KURL doesn't normalize the number of slashes after the scheme
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 37641
  Show dependency treegraph
 
Reported: 2008-10-30 12:29 PDT by Brett Wilson (Google)
Modified: 2010-04-15 00:43 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.