Commit Graph

5048 Commits

Author SHA1 Message Date
John Mark Bell 328fed8122 Liberally sprinkle #ifdef around
svn path=/trunk/netsurf/; revision=10417
2010-04-16 20:58:09 +00:00
John Mark Bell c4de2cf6b3 Extract parent charset and quirkiness
svn path=/trunk/netsurf/; revision=10416
2010-04-16 20:55:17 +00:00
John Mark Bell be3b246eab Add accessor for quirks
svn path=/trunk/netsurf/; revision=10415
2010-04-16 20:54:57 +00:00
John Mark Bell bf27f667c9 Add assertion
svn path=/trunk/netsurf/; revision=10414
2010-04-16 20:47:22 +00:00
John Mark Bell 34465a06ab Remove fresh field from struct content
svn path=/trunk/netsurf/; revision=10413
2010-04-16 20:44:44 +00:00
John Mark Bell e58a7d88f4 Make content_invalidate_reuse_data cause llcache to invalidate cache control data
svn path=/trunk/netsurf/; revision=10412
2010-04-16 20:43:36 +00:00
John Mark Bell 44552e7492 Provide API to invalidate llcache object cache control data
svn path=/trunk/netsurf/; revision=10411
2010-04-16 20:42:10 +00:00
John Mark Bell 9c1ff9fbc1 Fixup Amiga frontend
svn path=/trunk/netsurf/; revision=10410
2010-04-16 20:36:29 +00:00
John Mark Bell aa45b35f43 Sync Windows frontend with core changes.
svn path=/trunk/netsurf/; revision=10409
2010-04-16 20:15:54 +00:00
John Mark Bell ca0daa1a66 Reset fetch state when refetching object.
Ensure that cache control data is invalidated for 401/certificate failure so that conditional headers are not emitted when object is refetched.

svn path=/trunk/netsurf/; revision=10408
2010-04-16 20:08:27 +00:00
John Mark Bell b008327de1 Improve 401 response handling
svn path=/trunk/netsurf/; revision=10407
2010-04-16 20:00:10 +00:00
John Mark Bell b5b280dc96 Fix RISC OS build
svn path=/trunk/netsurf/; revision=10405
2010-04-15 22:49:22 +00:00
John Mark Bell a4503a1574 Fix framebuffer build
svn path=/trunk/netsurf/; revision=10404
2010-04-15 22:32:13 +00:00
John Mark Bell ad8d0b3350 Handle llcache queries (GTK only for now)
svn path=/trunk/netsurf/; revision=10403
2010-04-14 23:03:49 +00:00
John Mark Bell 1c42c0569f Ensure we invalidate cache data and mark objects as complete on failure to fetch.
svn path=/trunk/netsurf/; revision=10402
2010-04-14 20:42:03 +00:00
Daniel Silverstone 0235cc68d8 When iterating a linked list, please to always remember to *iterate* and not just stop after one item.
svn path=/trunk/netsurf/; revision=10400
2010-04-14 16:28:55 +00:00
Daniel Silverstone 2ba2dab3a7 Eat any #fragment in llcache_object_retrieve -- fixing double-fragment issues at the top level, and preventing fragment(ed) redirects from confusing the issue
svn path=/trunk/netsurf/; revision=10399
2010-04-14 14:53:21 +00:00
Daniel Silverstone b56886d0ee Abstract a number of unsafe iterations of object users into a single safe function call
svn path=/trunk/netsurf/; revision=10398
2010-04-14 10:56:44 +00:00
Daniel Silverstone 613fa0213a Simplify gtk scheduler and clean up valgrind-exposed error
svn path=/trunk/netsurf/; revision=10397
2010-04-14 09:59:23 +00:00
Daniel Silverstone 3344b974af Move content shuffling to prevent crash during threading through reformat
svn path=/trunk/netsurf/; revision=10396
2010-04-14 09:23:46 +00:00
John Mark Bell 3840e3911b Stop leaking hlcache handles.
svn path=/trunk/netsurf/; revision=10395
2010-04-13 23:24:07 +00:00
Rob Kendrick f75d630d25 Hack workaround for broken libcurls who obey ALL_PROXY for file: URLs. See comment.
svn path=/trunk/netsurf/; revision=10394
2010-04-13 18:41:19 +00:00
Chris Young a4793a3058 Updated Italian tranlation from Samir Hawamdeh
svn path=/trunk/netsurf/; revision=10393
2010-04-13 18:01:04 +00:00
Rob Kendrick 39209643d0 Add gtk_compat.c, which provides implementations of newer GTK functions that we require. This is needed because some macros we were using have been deprecated and replaced with functions, and we build without deprecated features due to it spewing warnings everywhere.
svn path=/trunk/netsurf/; revision=10392
2010-04-13 17:13:52 +00:00
Vincent Sanders d1cd04a0b9 remove incorrect low level cache release
svn path=/trunk/netsurf/; revision=10391
2010-04-13 16:53:52 +00:00
Rob Kendrick 9bb36f143e Revert previous two changes, as it breaks far too recent versions of GTK.
svn path=/trunk/netsurf/; revision=10390
2010-04-13 11:22:35 +00:00
Rob Kendrick e7ca0aaeb0 Update BUILDING-GTK to say GTK 2.18.
svn path=/trunk/netsurf/; revision=10389
2010-04-13 11:16:28 +00:00
Rob Kendrick 693b39f1f1 GTK 2.20 removes some widget property access macros that were deprecated in 2.18. Change uses to new function calls. Allows nsgtk to be built on Ubuntu 10.04.
svn path=/trunk/netsurf/; revision=10388
2010-04-13 11:12:28 +00:00
John Mark Bell 250431772f Use API to invalidate content freshness information
svn path=/trunk/netsurf/; revision=10387
2010-04-12 22:54:51 +00:00
John Mark Bell 1a5b039115 Fix double free of title
svn path=/trunk/netsurf/; revision=10386
2010-04-12 22:39:21 +00:00
Daniel Silverstone 3c81d2a527 Ensure url bar is updated with in-progress URL and restored if stop/download occurs
svn path=/trunk/netsurf/; revision=10385
2010-04-12 10:57:41 +00:00
Daniel Silverstone 8fd3bb959a Make favourite icons part of the HTML content's active set so that we don't complete the fetch until the favicon is finished loading
svn path=/trunk/netsurf/; revision=10384
2010-04-12 10:40:55 +00:00
Daniel Silverstone 2a0b0dab5b Suppress issues with < 1x1 (i)frames for now in GTK frontend
svn path=/trunk/netsurf/; revision=10383
2010-04-12 09:48:36 +00:00
Michael Drake f58fa3b2ac Revert last change.
svn path=/trunk/netsurf/; revision=10382
2010-04-12 09:31:34 +00:00
Michael Drake de6f1a2b2e Make new cache strip the fragment identifier, like fetchcache did.
svn path=/trunk/netsurf/; revision=10381
2010-04-12 09:25:41 +00:00
John Mark Bell 6f8a8495c6 I don't understand the full_redraw flag, or the optimisation gained from not using it.
No frontend other than RISC OS ever used it, so stop the RO frontend using it, too.

svn path=/trunk/netsurf/; revision=10380
2010-04-11 23:32:38 +00:00
John Mark Bell 952682b906 Implement draw_clone()
svn path=/trunk/netsurf/; revision=10379
2010-04-11 23:11:40 +00:00
John Mark Bell 83944723c0 Now that theme_install owns hlcache handle, ensure we clean it up.
Additionally, complete port from struct content to hlcache_handle.

svn path=/trunk/netsurf/; revision=10378
2010-04-11 23:08:54 +00:00
John Mark Bell dcd33c3798 Port to hlcache-enabled core
svn path=/trunk/netsurf/; revision=10377
2010-04-11 23:04:06 +00:00
John Mark Bell 18081664eb Provide API to enable a handle's callback to be replaced
svn path=/trunk/netsurf/; revision=10376
2010-04-11 23:02:49 +00:00
John Mark Bell 11201a1cd7 Yes, ownership of the theme content is passed to theme_install
svn path=/trunk/netsurf/; revision=10375
2010-04-11 23:01:55 +00:00
John Mark Bell 9e8849c04c Take the easy way out wrt loading messages files: leave it to the RISC OS frontend to do this.
svn path=/trunk/netsurf/; revision=10374
2010-04-11 22:40:41 +00:00
John Mark Bell 4b8c720ac5 Shrink source buffer to final length on fetch completion
svn path=/trunk/netsurf/; revision=10373
2010-04-11 21:26:20 +00:00
John Mark Bell 486731e589 Release low-level cache handle when destroying contents
svn path=/trunk/netsurf/; revision=10372
2010-04-11 20:58:50 +00:00
John Mark Bell 71de3618f1 Implement hlcache_poll(), which drives the low-level cache event loop, and attempts to clean the high-level cache.
Call this, instead of llcache_poll().

svn path=/trunk/netsurf/; revision=10371
2010-04-11 20:21:13 +00:00
John Mark Bell 7dcc15cbd4 Now that we own imported stylesheets, we can get away with allocating a single blank import and registering that.
svn path=/trunk/netsurf/; revision=10370
2010-04-11 19:59:59 +00:00
Chris Young eb19a649e7 Fix crash in kiosk mode
svn path=/trunk/netsurf/; revision=10369
2010-04-11 19:57:06 +00:00
John Mark Bell 88449e3328 Pedantic line break
svn path=/trunk/netsurf/; revision=10368
2010-04-11 19:51:38 +00:00
Vincent Sanders 27bd328df1 fixup windows download window
svn path=/trunk/netsurf/; revision=10366
2010-04-11 18:04:31 +00:00
John Mark Bell cca15e14c2 Remove need to constantly type c->data.html in html_destroy().
Fix destruction of linked and inline stylesheets to ensure that the pointer is non-NULL before trying to destroy it.

svn path=/trunk/netsurf/; revision=10364
2010-04-11 17:20:07 +00:00