Bug 76236

Summary: A warning is logged to console when typing a bare "/" in Safari address bar
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit Misc.Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, sullivan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed fix
sullivan: review+
follow-up fix sullivan: review+

Description Alexey Proskuryakov 2012-01-12 17:35:03 PST
12.01.12 17:28:55,414 Safari: CFURLCreateAbsoluteURLWithBytes was passed these invalid relativeURLBytes (and no baseURL): '/' (a file system path instead of an URL string). The URL created will not work with most file URL functions. CFURLCreateFromFileSystemRepresentationRelativeToBase should be used instead.

We should prevent this.
Comment 1 Alexey Proskuryakov 2012-01-12 17:37:46 PST
Created attachment 122350 [details]
proposed fix

This method is half-obsolete, but I'm not sure which other bottlenecks to patch. Maybe there aren't any yet.
Comment 2 Alexey Proskuryakov 2012-01-12 17:40:01 PST
This has a strange effect on where Safari tries to go when "/" is entered - I'm going to look into that separately.
Comment 3 Alexey Proskuryakov 2012-01-13 14:53:35 PST
> This has a strange effect on where Safari tries to go when "/" is entered - I'm going to look into that separately.

That turned out to be in Safari code.
Comment 4 Alexey Proskuryakov 2012-01-16 10:50:52 PST
Committed <http://trac.webkit.org/changeset/105077>.
Comment 5 Alexey Proskuryakov 2012-01-16 16:02:44 PST
Created attachment 122690 [details]
follow-up fix
Comment 6 Alexey Proskuryakov 2012-01-16 16:05:27 PST
Landed follow-up in <http://trac.webkit.org/changeset/105101>.