[webkit-dev] URL validating process in WebKit
Joe Mason
jmason at rim.com
Tue Dec 13 12:56:50 PST 2011
If you are using webkit to author a browser, rather than making changes to webkit itself, you should ask questions on webkit-help at lists.webkit.org.
Assuming you're writing code in a layer that has access to KURL, just pass your string to KURL and call isValid().
> -----Original Message-----
> From: webkit-dev-bounces at lists.webkit.org [mailto:webkit-dev-
> bounces at lists.webkit.org] On Behalf Of Ghita
> Sent: Tuesday, December 13, 2011 3:34 PM
> To: webkit-dev at lists.webkit.org
> Subject: Re: [webkit-dev] URL validating process in WebKit
>
>
> Thank you for your quick answer! In fact, my goal is to test only the
> functionality of the validity of one URL(I want to extract from the
> source
> code the part where he treats url validity and change it later
> according to
> my own web browser). You said that the tests for the urls are in
> LayoutTest/fast/url, so how I might execute a test, I mean, give the
> program
> one URL (for example in the main file), and the program returns me his
> feedback to its validity
>
>
>
> 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
> >> the
> >> web browser, I tried to follow step by step the compiler, but since
> I'm
> >> new,
> >> 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
> >> test,
> >> 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.
> >
> > Benjamin
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >
> >
>
> --
> View this message in context: http://old.nabble.com/URL-validating-
> process-in-WebKit-tp32970309p32970502.html
> Sent from the Webkit mailing list archive at Nabble.com.
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
More information about the webkit-dev
mailing list