James Bursa
70da04d69e
Simplify code using xmlDocGetRootElement().
...
svn path=/trunk/netsurf/; revision=4201
2008-05-25 22:31:42 +00:00
John Mark Bell
dc85ddb0a8
Launch redirects to unsupported URLs in other applications.
...
svn path=/trunk/netsurf/; revision=4098
2008-04-19 11:07:42 +00:00
Rob Kendrick
4ec38922ac
Change meaning of c->redraw_time to be the earliest time to reflow during page asset fetch. Have the time selected vary depending on how long the last reflow took.
...
svn path=/trunk/netsurf/; revision=3925
2008-03-11 00:14:39 +00:00
Michael Drake
5859cae5d4
Squash warning.
...
svn path=/trunk/netsurf/; revision=3875
2008-03-01 21:01:04 +00:00
Michael Drake
bae61d9224
Periodically reflow the page while fetching a page's objects. Make buffer all rendering default.
...
svn path=/trunk/netsurf/; revision=3874
2008-02-29 23:03:26 +00:00
John Mark Bell
89793c2171
Make content_reset actually do what it's meant to (i.e. reset the appropriate members)
...
Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them.
svn path=/trunk/netsurf/; revision=3870
2008-02-27 18:38:41 +00:00
John Mark Bell
1cf46a6792
SignednessWarnings.squash()
...
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
2008-02-25 17:58:00 +00:00
John Mark Bell
8fdd1f298e
Recurse into noscript elements when looking for meta refresh. This would 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
2008-01-28 02:43:06 +00:00
John Mark Bell
78d194cb77
Rework handling of HTTP redirects -- we now count the number of redirects 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
2008-01-28 01:35:00 +00:00
James Bursa
db7a0824d3
Process inline stylesheets anywhere in document, not just in <head>.
...
svn path=/trunk/netsurf/; revision=3615
2007-10-02 04:48:30 +00:00
Vincent Sanders
2f864eeecc
Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
...
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
John Mark Bell
63ae43204d
Fix UTF-16LE BOM detection _again_
...
svn path=/trunk/netsurf/; revision=3335
2007-06-10 19:30:37 +00:00
Daniel Silverstone
6807b4208a
Remove the netsurf/ from the include paths and rationalise use of <> vs "" 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
2007-05-30 22:39:54 +00:00
John Mark Bell
01316168fc
Fix bugs in charset detection.
...
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
2007-05-29 18:03:07 +00:00
James Bursa
7c43ff2537
Return an error from html_convert() if the base stylesheet fails to load, instead of continuing to layout which will assert.
...
svn path=/trunk/netsurf/; revision=3266
2007-05-06 00:41:12 +00:00
Richard Wilson
9c3dc045a0
Set minimum META refresh delay to 1s
...
svn path=/trunk/netsurf/; revision=3246
2007-04-07 22:51:06 +00:00
John Mark Bell
e7fe3678f0
Deal with more ways in which meta refresh URLs can be invalid.
...
svn path=/trunk/netsurf/; revision=3229
2007-04-01 16:41:22 +00:00
John Mark Bell
9c048ad076
Fix invalidation of unwanted contents.
...
svn path=/trunk/netsurf/; revision=3214
2007-03-19 00:04:09 +00:00
John Mark Bell
703b5fea73
Ensure content owners check that they are still interested in a content
...
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
2007-03-18 17:09:55 +00:00
John Mark Bell
9cf5122797
Content handlers should not call warn_user - they should broadcast the
...
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
2007-03-11 22:08:57 +00:00
John Mark Bell
3b40e0f5fc
Reparse entire document if meta charset resulting in changed document
...
encoding is encountered (fixes 1389126)
svn path=/trunk/netsurf/; revision=3176
2007-02-10 21:34:22 +00:00
John Mark Bell
a9b34bd990
Work around libxml oddness in allowing document meta encoding to
...
override external charset information.
svn path=/trunk/netsurf/; revision=3175
2007-02-10 19:53:41 +00:00
John Mark Bell
25213dca24
Fix handling of cookies in unverifiable transactions caused by a redirect from a fetch into a browser window which was varifiable.
...
svn path=/trunk/netsurf/; revision=3165
2007-02-02 23:08:13 +00:00
James Bursa
11aceb370a
Add html_dump_frameset() to help understand and debug frames.
...
svn path=/trunk/netsurf/; revision=3148
2007-01-24 23:16:02 +00:00
James Bursa
bda01b3135
Fix parsing error when an empty HTML data is returned. Add HTTP status and other information to status bar.
...
svn path=/trunk/netsurf/; revision=3140
2007-01-13 00:21:15 +00:00
James Bursa
d117eb4527
Stop animated images rendering for hidden or fallback boxes.
...
svn path=/trunk/netsurf/; revision=3128
2006-12-31 23:47:17 +00:00
Richard Wilson
1353585036
Implement form targets (fix 1619094)
...
svn path=/trunk/netsurf/; revision=3125
2006-12-30 00:34:26 +00:00
James Bursa
b6b768f521
Improved tracking of memory usage. c->size is now exclusive of talloc size, and the two are added to find the full size.
...
svn path=/trunk/netsurf/; revision=3103
2006-12-03 22:34:26 +00:00
Michael Drake
ba23e4b693
Update project URL.
...
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
James Bursa
ec563e60ca
Add browser_window_reformat() and use it instead of content_reformat() to remove browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3071
2006-11-26 21:04:42 +00:00
James Bursa
21af6f7fda
Move frames-related code out of browser.c into a new file. Remove some browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3070
2006-11-26 20:11:20 +00:00
Michael Drake
725d8c94a2
Media-descriptors are case-insensitive.
...
svn path=/trunk/netsurf/; revision=3044
2006-11-11 09:43:47 +00:00
John Mark Bell
2d4276ee41
Ensure page encoding isn't trampled.
...
svn path=/trunk/netsurf/; revision=3027
2006-11-04 19:52:49 +00:00
James Bursa
7a08d0f03d
Call html_reformat() from html_convert() to eliminate duplicate code. Improve calculations of document width and height.
...
svn path=/trunk/netsurf/; revision=2956
2006-09-16 21:33:55 +00:00
Richard Wilson
74fa727509
Experimental new frames code.
...
svn path=/trunk/netsurf/; revision=2906
2006-09-02 15:52:41 +00:00
Richard Wilson
675df80871
Allow broken meta refresh commands (fix mail.google.com, bug 1522982)
...
svn path=/trunk/netsurf/; revision=2777
2006-07-17 23:57:42 +00:00
James Bursa
1bf15f1e15
Check an object has a frame name before comparing.
...
svn path=/trunk/netsurf/; revision=2733
2006-07-12 04:22:57 +00:00
John Mark Bell
2cb285209e
Use case-insensitive strstr to match "stylesheet"
...
svn path=/trunk/netsurf/; revision=2689
2006-07-02 10:26:51 +00:00
John Mark Bell
f8469d2051
Ignore alternate stylesheets
...
svn path=/trunk/netsurf/; revision=2679
2006-06-29 23:29:15 +00:00
John Mark Bell
bf26437321
Link rel attribute may be a space separated list, take account of this
...
when looking for stylesheets.
svn path=/trunk/netsurf/; revision=2676
2006-06-29 21:29:21 +00:00
John Mark Bell
8c2e33b399
Fix clipping of page background if body shorter than window height
...
svn path=/trunk/netsurf/; revision=2675
2006-06-29 19:55:08 +00:00
Adrian Lees
8f7eeb9e58
Report fetching of 1 object/stylesheet correctly in status bar
...
svn path=/trunk/netsurf/; revision=2609
2006-05-29 00:55:43 +00:00
James Bursa
eaf8a13653
Remove incorrect comment.
...
svn path=/trunk/netsurf/; revision=2513
2006-04-09 16:22:07 +00:00
Daniel Silverstone
aee810d4d3
[project @ 2006-03-26 23:05:08 by dsilvers]
...
Do not include the border in the extra margin calculation for <html> tags
svn path=/import/netsurf/; revision=2188
2006-03-26 23:05:08 +00:00
Daniel Silverstone
0f13799768
[project @ 2006-03-26 22:43:22 by dsilvers]
...
First pass at fixing the bug shown by margintest.html in netsurftest
svn path=/import/netsurf/; revision=2187
2006-03-26 22:43:22 +00:00
Adrian Lees
99c1bfc195
[project @ 2006-03-22 03:56:44 by adrianl]
...
Prevent access to non-existent base stylesheet if it fails to load
svn path=/import/netsurf/; revision=2149
2006-03-22 03:56:44 +00:00
John Mark Bell
d4d3e5ee1c
[project @ 2006-02-23 15:06:53 by jmb]
...
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
2006-02-23 15:06:54 +00:00
John Mark Bell
b9de635dab
[project @ 2006-01-28 16:01:19 by jmb]
...
Fix meta-refresh implementation
svn path=/import/netsurf/; revision=2049
2006-01-28 16:01:19 +00:00
John Mark Bell
9f7e57c99d
[project @ 2006-01-25 08:25:37 by jmb]
...
Fix stupid aborts due to not removing scheduled callbacks
svn path=/import/netsurf/; revision=2040
2006-01-25 08:25:38 +00:00
John Mark Bell
0f77b057a1
[project @ 2006-01-25 06:52:38 by jmb]
...
Meta refresh support
svn path=/import/netsurf/; revision=2039
2006-01-25 06:52:38 +00:00