summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 5309-5406,5409-5422 via svnmerge from Daniel Silverstone2008-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn://svn.netsurf-browser.org/branches/vince/netsurf-fb ........ r5309 | vince | 2008-09-13 10:59:10 +0100 (Sat, 13 Sep 2008) | 2 lines first stab at framebuffer frontend ........ r5313 | vince | 2008-09-14 15:08:52 +0100 (Sun, 14 Sep 2008) | 2 lines add line plotters ........ r5314 | vince | 2008-09-14 15:28:12 +0100 (Sun, 14 Sep 2008) | 2 lines add rectangle plot to 16bpp plotters ........ r5315 | vince | 2008-09-14 19:58:57 +0100 (Sun, 14 Sep 2008) | 2 lines improve 16bpp image plot ........ r5316 | vince | 2008-09-15 00:35:32 +0100 (Mon, 15 Sep 2008) | 2 lines abstract the os specific framebuffer init ........ r5317 | vince | 2008-09-15 11:18:51 +0100 (Mon, 15 Sep 2008) | 2 lines first cut of linux frontend ........ r5318 | vince | 2008-09-15 12:01:00 +0100 (Mon, 15 Sep 2008) | 2 lines remove junk includes ........ r5319 | vince | 2008-09-15 12:09:02 +0100 (Mon, 15 Sep 2008) | 2 lines make plotters OS agnostic again ........ r5322 | vince | 2008-09-15 15:55:01 +0100 (Mon, 15 Sep 2008) | 2 lines Linux frontend operates ........ r5323 | vince | 2008-09-15 16:32:47 +0100 (Mon, 15 Sep 2008) | 2 lines abstract out OS specific input ........ r5326 | vince | 2008-09-15 19:21:01 +0100 (Mon, 15 Sep 2008) | 2 lines Improve linux mode setting ........ r5329 | vince | 2008-09-15 21:13:33 +0100 (Mon, 15 Sep 2008) | 2 lines improve text clipping ........ r5339 | vince | 2008-09-16 00:07:57 +0100 (Tue, 16 Sep 2008) | 2 lines possibly fix text clipping issue ........ r5342 | vince | 2008-09-16 00:39:36 +0100 (Tue, 16 Sep 2008) | 2 lines consolidate polygon plotters ........ r5344 | dsilvers | 2008-09-16 10:21:06 +0100 (Tue, 16 Sep 2008) | 1 line Fix up the framebuffer target makefile a bit more, add some config options for it ........ r5345 | dsilvers | 2008-09-16 10:22:19 +0100 (Tue, 16 Sep 2008) | 1 line Ensure the appropriate frontend is selected when building framebuffer ........ r5346 | dsilvers | 2008-09-16 10:27:16 +0100 (Tue, 16 Sep 2008) | 1 line Update build system to support targetting separate framebuffer frontends in different build trees, update executable to be nsfb-blah ........ r5350 | vince | 2008-09-16 17:15:04 +0100 (Tue, 16 Sep 2008) | 1 line Add -g to provide symbols for framebuffer link ........ r5351 | vince | 2008-09-16 17:17:09 +0100 (Tue, 16 Sep 2008) | 1 line framebuffer scheduler now works, plotters tweaked, gui tracks window redraw requirements better, keypresses not duplicated under linux fb ........ r5352 | dsilvers | 2008-09-16 17:38:53 +0100 (Tue, 16 Sep 2008) | 1 line Ensure we only allow one fetcher at a time ........ r5361 | vince | 2008-09-17 11:48:44 +0100 (Wed, 17 Sep 2008) | 2 lines initial cursor support ........ r5362 | vince | 2008-09-17 13:56:47 +0100 (Wed, 17 Sep 2008) | 2 lines add mouse handling ........ r5363 | vince | 2008-09-17 14:14:44 +0100 (Wed, 17 Sep 2008) | 2 lines add framebuffer resources ........ r5364 | vince | 2008-09-17 17:12:21 +0100 (Wed, 17 Sep 2008) | 2 lines add reasonable pointer ........ r5366 | vince | 2008-09-17 17:17:25 +0100 (Wed, 17 Sep 2008) | 2 lines fix pointer alpha ........ r5370 | vince | 2008-09-18 13:43:53 +0100 (Thu, 18 Sep 2008) | 2 lines warning squash and cleanup ready for trunk merge ........ r5375 | vince | 2008-09-19 14:58:43 +0100 (Fri, 19 Sep 2008) | 2 lines Working mouse navigation ........ r5377 | vince | 2008-09-20 14:06:22 +0100 (Sat, 20 Sep 2008) | 2 lines Improve scrolling ........ r5378 | vince | 2008-09-20 14:46:46 +0100 (Sat, 20 Sep 2008) | 2 lines fix redraw issues with scrolling ........ r5380 | vince | 2008-09-20 17:08:43 +0100 (Sat, 20 Sep 2008) | 3 lines Alter panning to use its own flag so it doesnt cause invalid redraw operations ........ r5381 | vince | 2008-09-20 21:52:45 +0100 (Sat, 20 Sep 2008) | 2 lines add dummy framebuffer ........ r5383 | vince | 2008-09-21 00:00:15 +0100 (Sun, 21 Sep 2008) | 2 lines fix segfault when cursor is off teh bottom of teh screen ........ r5384 | vince | 2008-09-21 00:06:08 +0100 (Sun, 21 Sep 2008) | 2 lines fix off by one in pointer fix ........ r5385 | vince | 2008-09-21 00:25:09 +0100 (Sun, 21 Sep 2008) | 2 lines when fixing bloody silly off by one errors remember to fix *both* references ........ r5387 | vince | 2008-09-21 00:38:13 +0100 (Sun, 21 Sep 2008) | 2 lines last try at stopping the pointer segfault ........ r5388 | vince | 2008-09-21 16:24:18 +0100 (Sun, 21 Sep 2008) | 2 lines improve vertical text clipping ........ r5392 | vince | 2008-09-21 23:11:51 +0100 (Sun, 21 Sep 2008) | 2 lines Improve text plotters ........ r5393 | vince | 2008-09-21 23:34:38 +0100 (Sun, 21 Sep 2008) | 2 lines fix 32bpp line plotting ........ r5394 | vince | 2008-09-22 00:00:03 +0100 (Mon, 22 Sep 2008) | 2 lines Fix off by one error in line plotting clipping ........ r5397 | vince | 2008-09-22 13:46:22 +0100 (Mon, 22 Sep 2008) | 2 lines Fix bitmap tileing ........ r5398 | vince | 2008-09-22 17:46:02 +0100 (Mon, 22 Sep 2008) | 2 lines enable knockout renderer ........ r5399 | vince | 2008-09-22 18:43:48 +0100 (Mon, 22 Sep 2008) | 2 lines ensure clipping region lies within window, caused by knockout renderer ........ r5400 | vince | 2008-09-22 19:20:25 +0100 (Mon, 22 Sep 2008) | 2 lines update cursor to one swiped from X windows ........ r5405 | vince | 2008-09-23 09:09:05 +0100 (Tue, 23 Sep 2008) | 2 lines fix vertical scroll limit ........ r5412 | dsilvers | 2008-09-23 10:53:14 +0100 (Tue, 23 Sep 2008) | 1 line Revert noisy fetcher patch ........ r5413 | dsilvers | 2008-09-23 10:58:00 +0100 (Tue, 23 Sep 2008) | 1 line Add header guards ........ r5414 | dsilvers | 2008-09-23 11:31:31 +0100 (Tue, 23 Sep 2008) | 1 line Tidy the region clipping slightly ........ r5416 | dsilvers | 2008-09-23 12:05:00 +0100 (Tue, 23 Sep 2008) | 1 line Rationalise how the framebuffer frontend finds resources and options ........ r5418 | dsilvers | 2008-09-23 13:59:00 +0100 (Tue, 23 Sep 2008) | 1 line Ensure options are overridden after load, and squash an fb_gui.c warning ........ r5419 | dsilvers | 2008-09-23 14:20:07 +0100 (Tue, 23 Sep 2008) | 1 line Support fb_mode and fb_device options ........ r5420 | dsilvers | 2008-09-23 14:21:48 +0100 (Tue, 23 Sep 2008) | 1 line Support option_fb_device in the able frontend ........ r5421 | dsilvers | 2008-09-23 14:25:17 +0100 (Tue, 23 Sep 2008) | 1 line Ensure target_blank is disabled ........ r5422 | dsilvers | 2008-09-23 14:39:00 +0100 (Tue, 23 Sep 2008) | 1 line Rework linux fb frontend to support scanning and opening all event devices for input ........ svn path=/trunk/netsurf/; revision=5423
* Treat image/jpg as JPEG content for Royal Mail captcha.Michael Drake2008-09-161-0/+1
| | | | svn path=/trunk/netsurf/; revision=5343
* Fix build if NETSURF_USE_PNG := yes and NETSURF_USE_MNG := noJohn Mark Bell2008-09-151-1/+3
| | | | svn path=/trunk/netsurf/; revision=5332
* Add libpng support. Default to off.Daniel Silverstone2008-09-152-3/+27
| | | | svn path=/trunk/netsurf/; revision=5330
* Add additional debug to fetch errors from cURLDaniel Silverstone2008-08-221-2/+4
| | | | svn path=/trunk/netsurf/; revision=5174
* Constify content_type_name & content_status_nameJohn Tytgat2008-07-302-4/+4
| | | | svn path=/trunk/netsurf/; revision=4815
* First round of C89 fixes. Those should be obvious, hope I didn't introduce ↵François Revel2008-07-294-14/+25
| | | | | | any side effect. svn path=/trunk/netsurf/; revision=4788
* Performance improvements: rather than calling content_clean() every poll, we ↵Rob Kendrick2008-07-072-2/+4
| | | | | | now call it no more frequently than once every 5 seconds. Additionally, we cache the result of talloc_total_size() in content_clean() rather than calculating it twice. On large documents, this function took 25% of CPU time. This makes the fetching/rendering/scrolling/redrawing of large documents over twice as fast. svn path=/trunk/netsurf/; revision=4527
* 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