summaryrefslogtreecommitdiff
path: root/render/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-191-0/+4
| | | | svn path=/trunk/netsurf/; revision=4098
* Change meaning of c->redraw_time to be the earliest time to reflow during ↵Rob Kendrick2008-03-111-4/+15
| | | | | | page asset fetch. Have the time selected vary depending on how long the last reflow took. svn path=/trunk/netsurf/; revision=3925
* Squash warning.Michael Drake2008-03-011-1/+1
| | | | svn path=/trunk/netsurf/; revision=3875
* Periodically reflow the page while fetching a page's objects. Make buffer ↵Michael Drake2008-02-291-6/+22
| | | | | | all rendering default. svn path=/trunk/netsurf/; revision=3874
* Make content_reset actually do what it's meant to (i.e. reset the ↵John Mark Bell2008-02-271-1/+6
| | | | | | | | appropriate members) Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them. svn path=/trunk/netsurf/; revision=3870
* SignednessWarnings.squash()John Mark Bell2008-02-251-19/+29
| | | | | | Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice. svn path=/trunk/netsurf/; revision=3868
* Recurse into noscript elements when looking for meta refresh. This would ↵John Mark Bell2008-01-281-1/+13
| | | | | | work perfectly, were it not for libxml's html parser terminating head and starting body on sight of a noscript tag. Joy. svn path=/trunk/netsurf/; revision=3791
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-62/+0
| | | | | | | | | | | | | | | | | | | | 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
* Process inline stylesheets anywhere in document, not just in <head>.James Bursa2007-10-021-115/+185
| | | | svn path=/trunk/netsurf/; revision=3615
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Fix UTF-16LE BOM detection _again_John Mark Bell2007-06-101-1/+1
| | | | svn path=/trunk/netsurf/; revision=3335
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-18/+18
| | | | | | | | | | | | | | 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
* Fix bugs in charset detection.John Mark Bell2007-05-291-20/+66
| | | | | | | | | | | Strip BOM from parser input, as it confuses libxml. Ignore non-ASCII-compatible charsets declared in meta tag (the parser defaults to 8 bit, so if it's managed to extract a meta charset, then it must be ASCII-compatible, so a non-ASCII-compatible meta charset is lies). Fixes WightLink timetable and 1726341. svn path=/trunk/netsurf/; revision=3304
* Return an error from html_convert() if the base stylesheet fails to load, ↵James Bursa2007-05-061-24/+31
| | | | | | instead of continuing to layout which will assert. svn path=/trunk/netsurf/; revision=3266
* Set minimum META refresh delay to 1sRichard Wilson2007-04-071-0/+5
| | | | svn path=/trunk/netsurf/; revision=3246
* Deal with more ways in which meta refresh URLs can be invalid.John Mark Bell2007-04-011-14/+23
| | | | svn path=/trunk/netsurf/; revision=3229
* Fix invalidation of unwanted contents.John Mark Bell2007-03-191-1/+12
| | | | svn path=/trunk/netsurf/; revision=3214
* Ensure content owners check that they are still interested in a content John Mark Bell2007-03-181-9/+24
| | | | | | | | when receiving notification that the content's in error. This prevents content pointers being corrupted when redirects occur. Fixes 1522002, 1551475. svn path=/trunk/netsurf/; revision=3211
* Content handlers should not call warn_user - they should broadcast the John Mark Bell2007-03-111-2/+7
| | | | | | | | | | error using content_broadcast and leave it to the content owner(s) to decide what to do about it. Only use warn_user for top-level contents. svn path=/trunk/netsurf/; revision=3204
* Reparse entire document if meta charset resulting in changed document John Mark Bell2007-02-101-14/+48
| | | | | | encoding is encountered (fixes 1389126) svn path=/trunk/netsurf/; revision=3176
* Work around libxml oddness in allowing document meta encoding to John Mark Bell2007-02-101-0/+20
| | | | | | override external charset information. svn path=/trunk/netsurf/; revision=3175
* Fix handling of cookies in unverifiable transactions caused by a redirect ↵John Mark Bell2007-02-021-11/+13
| | | | | | from a fetch into a browser window which was varifiable. svn path=/trunk/netsurf/; revision=3165
* Add html_dump_frameset() to help understand and debug frames.James Bursa2007-01-241-0/+56
| | | | svn path=/trunk/netsurf/; revision=3148
* Fix parsing error when an empty HTML data is returned. Add HTTP status and ↵James Bursa2007-01-131-96/+126
| | | | | | other information to status bar. svn path=/trunk/netsurf/; revision=3140
* Stop animated images rendering for hidden or fallback boxes.James Bursa2006-12-311-1/+3
| | | | svn path=/trunk/netsurf/; revision=3128
* Implement form targets (fix 1619094)Richard Wilson2006-12-301-1/+2
| | | | svn path=/trunk/netsurf/; revision=3125
* Improved tracking of memory usage. c->size is now exclusive of talloc size, ↵James Bursa2006-12-031-2/+0
| | | | | | and the two are added to find the full size. svn path=/trunk/netsurf/; revision=3103
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Add browser_window_reformat() and use it instead of content_reformat() to ↵James Bursa2006-11-261-5/+0
| | | | | | remove browser_window calls from html.c. svn path=/trunk/netsurf/; revision=3071
* Move frames-related code out of browser.c into a new file. Remove some ↵James Bursa2006-11-261-5/+0
| | | | | | browser_window calls from html.c. svn path=/trunk/netsurf/; revision=3070
* Media-descriptors are case-insensitive.Michael Drake2006-11-111-4/+4
| | | | svn path=/trunk/netsurf/; revision=3044
* Ensure page encoding isn't trampled.John Mark Bell2006-11-041-0/+3
| | | | svn path=/trunk/netsurf/; revision=3027
* Call html_reformat() from html_convert() to eliminate duplicate code. ↵James Bursa2006-09-161-19/+25
| | | | | | Improve calculations of document width and height. svn path=/trunk/netsurf/; revision=2956
* Experimental new frames code.Richard Wilson2006-09-021-91/+95
| | | | svn path=/trunk/netsurf/; revision=2906
* Allow broken meta refresh commands (fix mail.google.com, bug 1522982)Richard Wilson2006-07-171-1/+10
| | | | svn path=/trunk/netsurf/; revision=2777
* Check an object has a frame name before comparing.James Bursa2006-07-121-1/+2
| | | | svn path=/trunk/netsurf/; revision=2733
* Use case-insensitive strstr to match "stylesheet"John Mark Bell2006-07-021-2/+2
| | | | svn path=/trunk/netsurf/; revision=2689
* Ignore alternate stylesheetsJohn Mark Bell2006-06-291-0/+4
| | | | svn path=/trunk/netsurf/; revision=2679
* Link rel attribute may be a space separated list, take account of this John Mark Bell2006-06-291-2/+2
| | | | | | when looking for stylesheets. svn path=/trunk/netsurf/; revision=2676
* Fix clipping of page background if body shorter than window heightJohn Mark Bell2006-06-291-6/+7
| | | | svn path=/trunk/netsurf/; revision=2675
* Report fetching of 1 object/stylesheet correctly in status barAdrian Lees2006-05-291-5/+12
| | | | svn path=/trunk/netsurf/; revision=2609
* Remove incorrect comment.James Bursa2006-04-091-1/+0
| | | | svn path=/trunk/netsurf/; revision=2513
* [project @ 2006-03-26 23:05:08 by dsilvers]Daniel Silverstone2006-03-261-4/+2
| | | | | | Do not include the border in the extra margin calculation for <html> tags svn path=/import/netsurf/; revision=2188
* [project @ 2006-03-26 22:43:22 by dsilvers]Daniel Silverstone2006-03-261-2/+10
| | | | | | First pass at fixing the bug shown by margintest.html in netsurftest svn path=/import/netsurf/; revision=2187
* [project @ 2006-03-22 03:56:44 by adrianl]Adrian Lees2006-03-221-1/+4
| | | | | | Prevent access to non-existent base stylesheet if it fails to load svn path=/import/netsurf/; revision=2149
* [project @ 2006-02-23 15:06:53 by jmb]John Mark Bell2006-02-231-0/+16
| | | | | | | | | | Handle invalid SSL certificates better - UI still needs work. Modify fetch callback data parameter type to remove compiler warnings. Constify things. Lose global ssl_verify_certificates option. Fix issue when closing a dialog without input focus. svn path=/import/netsurf/; revision=2092
* [project @ 2006-01-28 16:01:19 by jmb]John Mark Bell2006-01-281-0/+18
| | | | | | Fix meta-refresh implementation svn path=/import/netsurf/; revision=2049
* [project @ 2006-01-25 08:25:37 by jmb]John Mark Bell2006-01-251-1/+6
| | | | | | Fix stupid aborts due to not removing scheduled callbacks svn path=/import/netsurf/; revision=2040
* [project @ 2006-01-25 06:52:38 by jmb]John Mark Bell2006-01-251-0/+116
| | | | | | Meta refresh support svn path=/import/netsurf/; revision=2039
* [project @ 2005-10-30 21:23:03 by bursa]James Bursa2005-10-301-15/+164
| | | | | | Add page, index, and box to struct content_html_data. Implement html_replace_object() and html_find_target(). No longer combine box trees of frames and frameset (was causing crashes). svn path=/import/netsurf/; revision=1874