summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* remove uneccissary includesVincent Sanders2010-01-295-9/+4
| | | | svn path=/trunk/netsurf/; revision=9931
* Don't set proxy option for file: URLs to workaround some versions of libcurl ↵James Bursa2009-12-251-1/+4
| | | | | | attempting to use it (fixed in latest libcurl). Also unset curl proxy option if it's disabled so the previous xfer's setting isn't retained. svn path=/trunk/netsurf/; revision=9759
* Merge r9731:HEAD from branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-181-1/+2
| | | | svn path=/trunk/netsurf/; revision=9737
* Merge branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-176-69/+161
| | | | svn path=/trunk/netsurf/; revision=9729
* Squash leak.John Mark Bell2009-12-021-0/+2
| | | | svn path=/trunk/netsurf/; revision=9711
* Treat decomposed URLs with no path component as being for the path "/".John Mark Bell2009-11-221-0/+7
| | | | svn path=/trunk/netsurf/; revision=9703
* This optimisation was so simple that it was broken.John Mark Bell2009-11-221-1/+1
| | | | svn path=/trunk/netsurf/; revision=9696
* Fix the other half of this NULL dereference issueJohn Mark Bell2009-11-221-1/+2
| | | | svn path=/trunk/netsurf/; revision=9695
* Ensure urldb file handle is closed on error.John Mark Bell2009-11-221-1/+6
| | | | svn path=/trunk/netsurf/; revision=9693
* Avoid potential NULL deferenceJohn Mark Bell2009-11-221-3/+5
| | | | svn path=/trunk/netsurf/; revision=9688
* Don't call memcpy when p->segment is NULLJohn Mark Bell2009-11-221-1/+2
| | | | svn path=/trunk/netsurf/; revision=9687
* Realm may be NULL iff there's no WWW-Authenticate header served up with a 401.John Mark Bell2009-11-031-2/+6
| | | | | | | | Default the realm to the fetch URL in this case. Fixes #2890933 Note for new cache implementation (which is actually capable of utilising response bodies in this situation): if there is no WWW-Authenticate header, serve up the response body immediately -- don't present an authentication dialogue. svn path=/trunk/netsurf/; revision=9659
* svgtiny requires separate contentsJohn Mark Bell2009-10-081-1/+1
| | | | svn path=/trunk/netsurf/; revision=9615
* Hack around cache issue. The entire cache layer needs a redesign asap.John Mark Bell2009-08-261-0/+27
| | | | svn path=/trunk/netsurf/; revision=9460
* - content/urldb.c(auth_data): Removed;John Tytgat2009-08-046-68/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prot_space_data): Added, it lives linked in the leaf host_part struct and together with its scheme and port (which defins canonical root url) and realm this defines a protection space. (path_data): Removed auth_data field and replaced by a prot_space_data pointer. (host_part::prot_space): Added linked list of protection space data structs. (urldb_get_auth_details): Given an URL fetch fetches its auth. (urldb_set_auth_details): Creates or updates the contents of a protection space to which given URL belongs. (urldb_destroy_host_tree): Delete protection data space structures using urldb_destroy_prot_space. (urldb_destroy_prot_space): Added. - content/urldb.h(urldb_get_auth_details): Added realm parameter. - content/fetchers/fetch_curl.c(fetch_curl_set_options): Update urldb_get_auth_details call (we don't know realm at this point). - content/fetchcache.c(fetchcache_callback, fetchcache_auth): At FETCH_AUTH, use realm to determine if we really don't know auth data and if so, refetch content. - content/content.h(struct content): Add content::tried_with_auth. - content/content.c(content_create): Initialize content::tried_with_auth. - riscos/401login.c(ro_gui_401login_open): Show known authentication data in dialogue so user can see what was wrong with it and correct it. Solves bug #2830829. svn path=/trunk/netsurf/; revision=9045
* Drop pkg-config on cairo, not needed here. Added const.John Tytgat2009-08-021-2/+2
| | | | svn path=/trunk/netsurf/; revision=8985
* Correct definitionChris Young2009-07-291-1/+1
| | | | svn path=/trunk/netsurf/; revision=8899
* Keep a copy of the next_fetcher pointer to avoid a situation where the fetch ↵Chris Young2009-07-291-1/+3
| | | | | | | | gets freed during the poll routine and the next pointer can no longer be read. svn path=/trunk/netsurf/; revision=8898
* Merge LibCSS port to trunk.John Mark Bell2009-07-233-7/+14
| | | | svn path=/trunk/netsurf/; revision=8752
* Replace parent_url with a pointer to the parent content.John Mark Bell2009-07-105-71/+32
| | | | svn path=/trunk/netsurf/; revision=8428
* Fix serialisation of page titles.John Mark Bell2009-07-041-1/+1
| | | | svn path=/trunk/netsurf/; revision=8313
* Permit referer to propagate to https hosts from httpJohn Mark Bell2009-06-191-3/+17
| | | | svn path=/trunk/netsurf/; revision=7875
* Remove spurious "domain" variable from urldb_iterate_partial().John Mark Bell2009-05-281-4/+4
| | | | | | | Lose unnecessary increment of rptr in cookie domain prefix matching. Record that, in the long term, we need some kind of TLD service to consult so that (e.g.) .co.uk is not considered a valid domain prefix. svn path=/trunk/netsurf/; revision=7600
* Make logic surrounding extraction of URL + referer scheme more sensible.John Mark Bell2009-05-281-37/+30
| | | | | | Always require the fetch URL to have a scheme -- without it, we can't find a fetcher. svn path=/trunk/netsurf/; revision=7597
* Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef ↵John Mark Bell2009-05-282-2/+0
| | | | | | NDEBUG. svn path=/trunk/netsurf/; revision=7593
* s/abort/abort_fetch/John Mark Bell2009-05-141-7/+7
| | | | svn path=/trunk/netsurf/; revision=7512
* Fix url completion when last character in url bar is a /John Mark Bell2009-04-161-6/+7
| | | | svn path=/trunk/netsurf/; revision=7105
* It's probably a good idea not to redirect to file:/// URLsJohn Mark Bell2009-03-041-0/+26
| | | | svn path=/trunk/netsurf/; revision=6695
* Pointless warning avoidance.John Mark Bell2009-03-021-11/+22
| | | | svn path=/trunk/netsurf/; revision=6676
* Purge WITH_AUTHJohn Mark Bell2009-02-224-14/+1
| | | | svn path=/trunk/netsurf/; revision=6600
* Purge NETSURF_USE_SSL and WITH_SSLJohn Mark Bell2009-02-225-45/+0
| | | | svn path=/trunk/netsurf/; revision=6599
* Log detected state of openssl availabilityJohn Mark Bell2009-02-211-0/+2
| | | | svn path=/trunk/netsurf/; revision=6595
* Given that the build-time SSL detection can be somewhat inaccurate, attempt ↵John Mark Bell2009-02-211-4/+21
| | | | | | to determine whether we can use the SSL_CTX stuff at runtime. svn path=/trunk/netsurf/; revision=6586
* Make redirects behave as a NOP wrt the verifiability of fetches.John Mark Bell2009-02-163-2/+34
| | | | | | Apparently, the interweb depends on this. svn path=/trunk/netsurf/; revision=6542
* Ensure that neither the current fetch host nor the referrer is an IP address ↵John Mark Bell2009-02-131-3/+15
| | | | | | before attempting to domain match them. svn path=/trunk/netsurf/; revision=6466
* Even fuzzier domain matching.John Mark Bell2009-02-131-23/+45
| | | | svn path=/trunk/netsurf/; revision=6463
* Document the assumption that all URLs passed into urldb are already ↵John Mark Bell2009-02-061-0/+4
| | | | | | normalised. Violate this precondition at your peril. svn path=/trunk/netsurf/; revision=6371
* Comment content_redraw.Michael Drake2009-02-021-0/+19
| | | | svn path=/trunk/netsurf/; revision=6355
* Let's try that again. Now actually passes the regression tests.John Mark Bell2009-01-311-6/+7
| | | | svn path=/trunk/netsurf/; revision=6317
* Fix urldb_match_path().John Mark Bell2009-01-311-5/+13
| | | | | | Fix test code. svn path=/trunk/netsurf/; revision=6316
* urldb_destroy_path_tree() -> iterationJohn Mark Bell2009-01-311-9/+24
| | | | svn path=/trunk/netsurf/; revision=6315
* urldb_save_cookie_paths() -> iterationJohn Mark Bell2009-01-311-15/+27
| | | | svn path=/trunk/netsurf/; revision=6314
* Initialising variables helpsJohn Mark Bell2009-01-311-1/+1
| | | | svn path=/trunk/netsurf/; revision=6313
* urldb_delete_cookie_paths() -> iterationJohn Mark Bell2009-01-311-18/+35
| | | | svn path=/trunk/netsurf/; revision=6312
* Make urldb_dump_paths iterateJohn Mark Bell2009-01-311-10/+21
| | | | svn path=/trunk/netsurf/; revision=6311
* Make urldb_match_path() iterate.John Mark Bell2009-01-311-13/+16
| | | | svn path=/trunk/netsurf/; revision=6310
* Make urldb_iterate_entries_path use iterationJohn Mark Bell2009-01-301-28/+38
| | | | svn path=/trunk/netsurf/; revision=6304
* Pedantic linewrappingJohn Mark Bell2009-01-301-5/+10
| | | | svn path=/trunk/netsurf/; revision=6303
* Make urldb_iterate_partial_path iterate over the tree and not recurse.John Mark Bell2009-01-301-25/+59
| | | | svn path=/trunk/netsurf/; revision=6302
* This logic looked entirely wrong. Fix it to be more sane. If this breaks ↵John Mark Bell2009-01-301-12/+3
| | | | | | things, blame the lack of commentary. svn path=/trunk/netsurf/; revision=6301