[webkit-dev] URL validating process in WebKit
alaoui_ghita at hotmail.com
Tue Dec 13 12:56:16 PST 2011
Finally, I think I don't need to run unit tests to get the part of the source
code that deals only with the validity of a url. Based on your experience,
what is the best way to get this, I tried to create a new project, copy the
Kurl class of webkit and put it in my new project, and a main file that
creates an object Kurl, but I got lots of problems of file dependencies,
have you a better way to do this?
It was clear enough? I hope it !
Bugzilla from benjamin at webkit.org wrote:
> On Tue, Dec 13, 2011 at 12:00 PM, Ghita <alaoui_ghita at hotmail.com> wrote:
>> I need to know how webkit validates a URL address entered by a user in
>> web browser, I tried to follow step by step the compiler, but since I'm
>> I'm completely lost in the webkit source code, so I would like to make a
>> unit test to test the validity of one URL address, how I can do this
>> so if someone could help me, I will be very grateful
> For regular WebKit, part of the validation is done KURL::init() and
> the final decision of invalidating the URL is in KURL::parse().
> If you use GoogleURL, look at the parsing in GoogleURL itself.
> The tests for urls are in LayoutTest/fast/url.
> If you are aware of a problem with parsing valid or invalid URLs,
> please create a bug report on bugs.webkit.org.
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
View this message in context: http://old.nabble.com/URL-validating-process-in-WebKit-tp32970309p32970646.html
Sent from the Webkit mailing list archive at Nabble.com.
More information about the webkit-dev