WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
132384
[GTK] unit test for tls redirection failure required
https://bugs.webkit.org/show_bug.cgi?id=132384
Summary
[GTK] unit test for tls redirection failure required
Brian Holt
Reported
2014-04-30 09:03:12 PDT
Create a unit test for GTK for
bug 121548
Attachments
WIP patch
(3.80 KB, patch)
2014-05-01 03:26 PDT
,
Brian Holt
cgarcia
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brian Holt
Comment 1
2014-05-01 03:26:40 PDT
Created
attachment 230573
[details]
WIP patch
Brian Holt
Comment 2
2014-05-01 03:28:49 PDT
I've uploaded a unit test which should test for the problem, but I'm having trouble with my environment - after running an TestSSL (with or without my patch) correctly the first time, any further runs hang.
Carlos Garcia Campos
Comment 3
2014-05-03 03:54:00 PDT
Ah right, this is due to
bug #131675
, that broke a lot of unit tests.
Carlos Garcia Campos
Comment 4
2014-05-03 04:45:55 PDT
Comment on
attachment 230573
[details]
WIP patch View in context:
https://bugs.webkit.org/attachment.cgi?id=230573&action=review
I think this test is actually showing that your patch was wrong, since we are failing with TLS errors for a non HTTPS connection.
> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp:222 > + // Load a page with an invalid certificate that redirects to http. > + test->loadURI(kHttpsServer->getURIForPath("/redirect-to-http").data()); > + test->waitUntilLoadFinished();
Shouldn't this fail?, the comment says it's a page with an invalid certificate.
> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp:226 > + // Now load a page with http and expect that the previous TLS failure should cause the load to fail. > + test->loadURI(kHttpsServer->getURIForPath("/index.html").data()); > + test->waitUntilLoadFailedWithTLSErrors();
I don't think this is correct. The errors of a previous load shouldn't affect new loads. The problem is supposed to happen with redirections, not with two independent loads.
> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp:252 > + } else if (g_str_equal(path, "/redirect-to-http/")) { > + soup_message_set_redirect(message, SOUP_STATUS_MOVED_PERMANENTLY, "");
I don't understand this either, this should redirect to another location, you should use a redirect uri instead of "".
Carlos Garcia Campos
Comment 5
2014-05-07 03:13:25 PDT
Unit test was included in the patch landed in
r168417
in the end, so this is no longer needed.
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