Bug 69438

Summary: Expose the ability to get the range of a host name from a user typed string
Product: WebKit Reporter: Kevin Decker <kdecker>
Component: WebKit APIAssignee: Kevin Decker <kdecker>
Status: CLOSED WONTFIX    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch kdecker: review-

Kevin Decker
Reported 2011-10-05 10:09:25 PDT
WebNSURLExtras has code inside applyHostNameFunctionToURLString() that has the ability get a hostname NSRange from a user typed string. Extracting this existing logic into a separate new method would allow use to reuse the logic.
Attachments
proposed patch (7.06 KB, patch)
2011-10-05 10:14 PDT, Kevin Decker
kdecker: review-
Kevin Decker
Comment 1 2011-10-05 10:14:17 PDT
Created attachment 109816 [details] proposed patch
Darin Adler
Comment 2 2011-10-05 10:30:00 PDT
Comment on attachment 109816 [details] proposed patch We shouldn’t add more functions like this to WebKit unless they are used inside WebKit.
Note You need to log in before you can comment on or make changes to this bug.