summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Remove two unused functions.James Bursa2008-06-142-57/+0
| | | | svn path=/trunk/netsurf/; revision=4333
* Handle errors returned by curl_multi_perform(), such as out of memory, ↵James Bursa2008-06-141-2/+7
| | | | | | instead of exiting. svn path=/trunk/netsurf/; revision=4329
* Fix cache controlJohn Mark Bell2008-06-061-10/+27
| | | | svn path=/trunk/netsurf/; revision=4288
* Squash warningJohn Mark Bell2008-06-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=4257
* Move struct cache_data from fetch to content as it is no longer needed by ↵James Bursa2008-06-034-80/+74
| | | | | | fetch. Make it a member instead of pointer in struct content. svn path=/trunk/netsurf/; revision=4246
* Remove unused members of struct fetch (were moved to fetch_curl but not ↵James Bursa2008-05-311-4/+0
| | | | | | removed from here). svn path=/trunk/netsurf/; revision=4232
* Stop processing headers and sending FETCH_HEADER if fetch was aborted.James Bursa2008-05-311-0/+5
| | | | svn path=/trunk/netsurf/; revision=4231
* Fix freeing of etag data.James Bursa2008-05-311-1/+1
| | | | svn path=/trunk/netsurf/; revision=4229
* Fix handling of cache control dataJohn Mark Bell2008-05-302-7/+17
| | | | svn path=/trunk/netsurf/; revision=4227
* Add new fetch callback FETCH_HEADER for headers and move as much header ↵James Bursa2008-05-303-109/+113
| | | | | | parsing as possible from fetch_curl.c to fetchcache.c. This simplifies fetch_curl.c and will make it possible to store response headers in future. svn path=/trunk/netsurf/; revision=4226
* Wrap very verbose logging with #ifdef, so as to silence it.John Mark Bell2008-05-291-0/+25
| | | | svn path=/trunk/netsurf/; revision=4225
* - introduction of SLEN()John Tytgat2008-05-251-1/+1
| | | | | | | - enforce result of url_normalize() being NULL on failure - plug memory leak when url_normalize() fails svn path=/trunk/netsurf/; revision=4200
* No longer suppress the default Accept: header.John Mark Bell2008-05-241-1/+0
| | | | | | | This fixes all those sites that brokenly assume that it's required and thus break when the client doesn't send one (here's looking at you royalmail.com). libcurl's default Accept header is "*/*", which is semantically equivalent to not sending a header at all (no header implies the client accepts all content types). svn path=/trunk/netsurf/; revision=4196
* Fix type of value_was_quoted member of cookie_data struct.John Mark Bell2008-05-161-1/+1
| | | | svn path=/trunk/netsurf/; revision=4166
* Remove unnecessary includesJohn Mark Bell2008-05-112-6/+0
| | | | svn path=/trunk/netsurf/; revision=4144
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-192-22/+39
| | | | svn path=/trunk/netsurf/; revision=4098
* const fixes in plotters and history coreRob Kendrick2008-04-072-2/+2
| | | | svn path=/trunk/netsurf/; revision=4083
* Implement sprite support for GTK using librospriteJames Shaw2008-03-293-3/+16
| | | | svn path=/trunk/netsurf/; revision=4051
* Squash warningJohn Mark Bell2008-03-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=3988
* Squash warningJohn Mark Bell2008-03-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=3983
* Squash warningJohn Mark Bell2008-03-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=3982
* Drop support for URL file versions below 1.06John Mark Bell2008-03-131-83/+40
| | | | svn path=/trunk/netsurf/; revision=3945
* Forward compatible Cookie file loading/savingJohn Mark Bell2008-03-131-10/+15
| | | | | | Reduce amount of magic numbers svn path=/trunk/netsurf/; revision=3944
* Change meaning of c->redraw_time to be the earliest time to reflow during ↵Rob Kendrick2008-03-111-3/+3
| | | | | | page asset fetch. Have the time selected vary depending on how long the last reflow took. svn path=/trunk/netsurf/; revision=3925
* jmb's rework of data: URL handlingRob Kendrick2008-03-061-36/+78
| | | | svn path=/trunk/netsurf/; revision=3890
* Add another check for malformed data: URLsRob Kendrick2008-03-051-1/+10
| | | | svn path=/trunk/netsurf/; revision=3889
* Many data: fixes. Acid2 no longer crashes NetSurf.Rob Kendrick2008-03-051-44/+84
| | | | svn path=/trunk/netsurf/; revision=3888
* Check for calloc() failingRob Kendrick2008-03-051-0/+3
| | | | svn path=/trunk/netsurf/; revision=3885
* Use curl_free() when freeing data: URLs that are URL-encoded instead of ↵Rob Kendrick2008-03-051-1/+4
| | | | | | using free() svn path=/trunk/netsurf/; revision=3884
* Initial attempt at implementing data: URLs. Needs cleaning and verifying ↵Rob Kendrick2008-03-053-0/+241
| | | | | | that I'm using the fetcher API correctly. Appears to work, though. svn path=/trunk/netsurf/; revision=3882
* Add testcase for non-fqdn -- already passes, but may as well keep it for ↵John Mark Bell2008-03-031-6/+24
| | | | | | regression testing. svn path=/trunk/netsurf/; revision=3877
* Periodically reflow the page while fetching a page's objects. Make buffer ↵Michael Drake2008-02-291-1/+5
| | | | | | all rendering default. svn path=/trunk/netsurf/; revision=3874
* Mark old contents as stale if a conditional request succeeded so they'll be ↵John Mark Bell2008-02-271-0/+19
| | | | | | flushed from the cache as soon as they're unused. svn path=/trunk/netsurf/; revision=3872
* Explicitly mark error pages as non-fresh so they'll get purged from the ↵John Mark Bell2008-02-271-0/+4
| | | | | | cache ASAP. svn path=/trunk/netsurf/; revision=3871
* Make content_reset actually do what it's meant to (i.e. reset the ↵John Mark Bell2008-02-271-0/+7
| | | | | | | | appropriate members) Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them. svn path=/trunk/netsurf/; revision=3870
* Silence noisy loggingJohn Mark Bell2008-02-031-2/+2
| | | | svn path=/trunk/netsurf/; revision=3830
* Add url_fragment to extract fragment from URLJohn Mark Bell2008-02-033-9/+15
| | | | | | | | Optionally allow url_compare to ignore fragments in comparison Fix handling of url_compare result in a few places Fix redirects which contain fragments in the Location header svn path=/trunk/netsurf/; revision=3826
* Make core fetching code handle verifiability of transactionsJohn Mark Bell2008-01-304-31/+95
| | | | | | | | Make core fetching code be responsible for inserting cookies into the urldb Provide accessor to a fetch's parent url (this is defined as being the URL of the verifiable fetch which caused this one to occur) Make fetchcache's 3xx handling use the parent url when spawning new fetches svn path=/trunk/netsurf/; revision=3809
* Ensure plq is terminated when looking for an URL path.John Mark Bell2008-01-302-2/+19
| | | | | | Ensure fetchcache_redirect() normalizes the redirect destination. svn path=/trunk/netsurf/; revision=3807
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-283-34/+144
| | | | | | | | | | | | | | | | | | | | followed for a given item and abort if a fixed limit is reached. This fixes sites which have pages that redirect to themselves. Redirect handling is now transparent to clients of fetchcache. The new scheme works as follows: 1) Request content for URL (fetchcache() 2) Start fetch of content (fetchcache_go() 3) If no redirect, continue through LOADING, READY, DONE etc. states as before If redirect, receive NEWPTR for each redirect that occurs, then continue through LOADING, READY, DONE etc. states as before. The upshot of this is that redirects result in extra contents being created. It also means that, until LOADING has been received, the content (and thus the URL being fetched) may change. Therefore, fetchcache clients should expect to have to deal with transient data prior to LOADING occurring. As a necessary side-effect of this, the HTML object URLs and CSS @import URLs are no longer stored alongside the relevant contents. These URLs can be accessed by interrogating the url member of struct content anyway, so it was a rather redundant scheme before. svn path=/trunk/netsurf/; revision=3787
* More work on cookie parser. Our junk value handling is now significantly ↵John Mark Bell2008-01-191-19/+97
| | | | | | | | | | | | | closer to that of other browsers. + Fix infinite loop when encountering a spurious \r + Values are only treated as quoted if the first non-whitespace character is " + Cookies are inserted into the db in the order of receipt. This brings our Cookie: header ordering closer to other browsers (though this strictly shouldn't matter -- no ordering is defined, other than by path specificity) + Fix testcase assertions to cope with new output ordering svn path=/trunk/netsurf/; revision=3709
* Work on cookies to bring our behaviour closer to the spec and other browsers:John Mark Bell2008-01-172-97/+315
| | | | | | | | | | | | | | | | + Improve handling of quoted cookies -- now processes nested quotes correctly + Improve cookie output -- now knows which version it's outputting for and processes things appropriately + Add assertion that we're dealing with a domain cookie in the case where the cookie domain and URL host part don't match during validation. + Tidy up fix for broken domain cookie setting -- it's now less confusing to read. + Preserve cookie value quoting, regardless of its necessity. + Modify Cookie file format to save value_was_quoted flag -- version number bumped to 101. + Add more testcases. svn path=/trunk/netsurf/; revision=3708
* The previous fix was broken -- URI paths include the leafname.John Mark Bell2008-01-071-61/+34
| | | | | | | | | Make url_path() return the full path (including the leafname). Defaulted cookie path attributes have the leafname and trailing slash stripped. Add testcase for defaulted path. Fix testcase conditions for paths with leafnames. svn path=/trunk/netsurf/; revision=3693
* Fix potential crash in urldb_dump()John Mark Bell2008-01-071-13/+92
| | | | | | | | Relax 4.3.2(i) checking (Cookie path must be a prefix of URL path). We now permit a cookie path containing the document leafname -- we strip the leafname from the path. Make testsuite build again. Add tests for cookie path checking. svn path=/trunk/netsurf/; revision=3692
* Work around sites sending domain cookies for .foo.com from hosts such as ↵John Mark Bell2007-10-301-5/+20
| | | | | | bar.bat.foo.com, then expecting domain matching to succeed. This causes me pain. svn path=/trunk/netsurf/; revision=3637
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-0811-35/+155
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Move window scaling from platform-specific code to desktop/browser.c. Modify ↵James Bursa2007-08-072-2/+3
| | | | | | gtk gui to handle scaling in the same way as RO. svn path=/trunk/netsurf/; revision=3478
* Fix crash when building error page -- fetch will be NULL, so ↵John Mark Bell2007-08-062-1/+4
| | | | | | fetch_get_referer will fail. svn path=/trunk/netsurf/; revision=3476
* Ensure option strings aren't blank before setting headers: previously, a ↵John Mark Bell2007-07-211-2/+2
| | | | | | blank option string could result in "Accept-Language: , *;q=0.1" being sent, for example. svn path=/trunk/netsurf/; revision=3450
* Change ArtWorks file MIME type to "image/x-artworks".Michael Drake2007-07-211-6/+3
| | | | svn path=/trunk/netsurf/; revision=3449