Commit Graph

13 Commits

Author SHA1 Message Date
Matthew Horan c60e2450cc Replace QString::toAscii with QString::toLatin1
QString::toAscii removed in Qt 5.
2013-03-11 20:35:31 -04:00
Sean Geoghegan 96e79e4a2f Fix authentication time outs.
If the incorrect credentials are provided QNetworkAccessManager just keeps
firing the same signal and it gets stuck in a infinite loop. This change only
sets the user name and password if they are different to the current user
name and password, causing the event to not be continuously triggered after
failed authentications.
2012-12-17 10:53:19 +10:30
Matthew Horan b829103bbd Set the URL of NoOpReply to the request URL
Prevents insertion of an empty URL into m_responses when the requested
URL is blacklisted.
2012-11-30 21:37:56 -05:00
Matthew Horan 5127c01366 Fix status code and headers for iframes
QWebFrame::url() does not return a valid URL for iframes.  We can't just
look up the requested URL in m_responses because the request may have
been redirected, so instead we keep track of redirects and set up the
NetworkResponse when the final reply is received.
2012-11-30 21:26:40 -05:00
Sean Geoghegan f755b1f277 Add blacklisting support to webkit server.
Adds a SetBlacklist command that takes a list of URLs
which will be black listed by the WebKit Server. When
a request is made to one these URLs webkit_server will
intercept the request and return a NoOpReply which contains
no content.
2012-11-15 10:32:06 -05:00
Matthew Horan e9a4b77ecb Read status and headers from response after load 2012-10-23 23:24:42 -04:00
Joe Ferris cae5119eef Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
Matthew Mongeau 784b9b7f63 Setup multi-window sync. 2012-06-29 10:43:50 -04:00
Matthew Mongeau 5b5067f243 Added browser.authenticate for http basic authentication 2012-06-15 12:49:02 -04:00
Patrick Bacon f190f51652 Rather than creating a new NetworkAccessManager when the page is reset,
reuse the existing manager and just clear its headers and cookies.

This avoids repeatedly setting up the SIGNAL/SLOT callback stuff which
is leading to unclosed pipes on Ubuntu, eventually causing "too many
open files" errors in large test suites.
2012-04-03 18:39:10 -04:00
Matthew Mongeau and Joe Ferris 25fe9befac Redirects should not send content type. Fixes #162 2011-09-15 14:36:03 -04:00
os0x 818f654e4e fix spell
move header specs to driver_spec
2011-06-25 20:48:01 +09:00
shogo-ohta ee1388e329 add header support 2011-06-24 13:55:03 +09:00