summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add SVG content name to content_type_name array.John Mark Bell2007-07-211-0/+3
| | | | svn path=/trunk/netsurf/; revision=3448
* Add incremental parsing of SVG data to librsvg content handler.Rob Kendrick2007-07-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=3441
* Initial work on RSVG image handler. Still a lot to do.Rob Kendrick2007-07-183-2/+15
| | | | svn path=/trunk/netsurf/; revision=3433
* Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVGRob Kendrick2007-07-183-0/+12
| | | | svn path=/trunk/netsurf/; revision=3432
* Add CONTENT_SVG to content handling.James Bursa2007-07-133-0/+8
| | | | svn path=/trunk/netsurf/; revision=3406
* Fix uninitialised fetch structure entries.John Mark Bell2007-07-081-0/+2
| | | | | | This was causing the Referer header to be sent regardless (assuming the referer string was non-NULL). svn path=/trunk/netsurf/; revision=3387
* Fix deadlock when fetching stylesheets when max_fetchers_per_host is reached ↵James Bursa2007-07-043-9/+11
| | | | | | by splitting fetch_can_be_freed() into fetch_remove_from_queues() and fetch_free(). svn path=/trunk/netsurf/; revision=3380
* Rename register_curl_fetchers() to fetch_curl_register(). Add declarations ↵James Bursa2007-07-043-391/+468
| | | | | | for static functions and reorder functions. svn path=/trunk/netsurf/; revision=3379
* Add option_suppress_curl_debug and default it to trueDaniel Silverstone2007-06-271-0/+8
| | | | svn path=/trunk/netsurf/; revision=3373
* Only pass option_ca_bundle and option_ca_path to cURL if they are non-empty.Daniel Silverstone2007-06-271-2/+2
| | | | svn path=/trunk/netsurf/; revision=3372
* Add ca_path option which sets CURLOPT_CAPATH.Daniel Silverstone2007-06-271-0/+2
| | | | svn path=/trunk/netsurf/; revision=3369
* Move the p->parent check in urldb to before the cookie loop. Prevents the ↵Daniel Silverstone2007-06-271-6/+12
| | | | | | cookie stuff exploding on domain cookies with no path. Fixes breakage with visiting launchpad.net svn path=/trunk/netsurf/; revision=3368
* Fix cookie domain matching in unverifiable transactions.John Mark Bell2007-06-101-15/+19
| | | | | | Minor tidying. svn path=/trunk/netsurf/; revision=3337
* Add debug about ring sizes. Ensure we dispatch queued jobs when a job is freed.Daniel Silverstone2007-06-101-1/+13
| | | | svn path=/trunk/netsurf/; revision=3333
* Warning fixes.John Mark Bell2007-06-103-30/+32
| | | | svn path=/trunk/netsurf/; revision=3332
* Remove a time consuming LOG(()) and add some whitespace to help me thinkDaniel Silverstone2007-06-101-1/+4
| | | | svn path=/trunk/netsurf/; revision=3331
* Merge scheme switcher branch in.Daniel Silverstone2007-06-104-1363/+1625
| | | | svn path=/trunk/netsurf/; revision=3330
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-309-71/+71
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307