WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 37496
Add URL scheme parsing tests
https://bugs.webkit.org/show_bug.cgi?id=37496
Summary
Add URL scheme parsing tests
Adam Barth
Reported
2010-04-13 01:10:13 PDT
Add URL scheme parsing tests
Attachments
Patch
(3.67 KB, patch)
2010-04-13 01:13 PDT
,
Adam Barth
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2010-04-13 01:13:23 PDT
Created
attachment 53231
[details]
Patch
Alexey Proskuryakov
Comment 2
2010-04-13 15:43:35 PDT
Could it be correct behavior that " HTTP " is treated as a relative URL? Maybe it should never hit the "absolute URL" case, in fact?
Adam Barth
Comment 3
2010-04-14 08:24:36 PDT
> Could it be correct behavior that " HTTP " is treated as a relative URL? Maybe > it should never hit the "absolute URL" case, in fact?
Yes, I believe that is the correct behavior. However, it makes it tricky to test how we parse absolute URLs that begin in this way.
Alexey Proskuryakov
Comment 4
2010-04-14 08:34:10 PDT
That would mean testing a code path that should never be taken. It seems better to just test that this code path is never taken by verifying that such URLs are parsed as relative.
Adam Barth
Comment 5
2010-04-14 08:41:57 PDT
> That would mean testing a code path that should never be taken.
There might be another API that takes strings and parses them as absolute URLs, or if there isn't one today, we could well invent one tomorrow.
> It seems better > to just test that this code path is never taken by verifying that such URLs are > parsed as relative.
We can certainly test that if you like. The intent of this test is to test the URL parser, not the HTMLAnchorElement.href API. We're just using the href API as a convenient way to get at the URL parser.
Maciej Stachowiak
Comment 6
2010-04-15 00:56:44 PDT
Comment on
attachment 53231
[details]
Patch r=me
Adam Barth
Comment 7
2010-04-15 01:07:21 PDT
Committed
r57635
: <
http://trac.webkit.org/changeset/57635
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug