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
James Bursa
c28747d710
[project @ 2005-10-30 21:23:03 by bursa]
...
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
2005-10-30 21:23:03 +00:00
James Bursa
4ce357f09b
[project @ 2005-08-22 22:49:52 by bursa]
...
More work towards frame targets: add target parameter to box_create(), and copy target down the box tree during construction.
svn path=/import/netsurf/; revision=1853
2005-08-22 22:49:52 +00:00
James Bursa
08e8ee3ed1
[project @ 2005-08-21 12:04:17 by bursa]
...
Change void * parameters to intptr_t to make them correct for storing integers or pointers.
svn path=/import/netsurf/; revision=1852
2005-08-21 12:04:18 +00:00
James Bursa
8afd957986
[project @ 2005-08-20 22:52:20 by bursa]
...
Work towards implementing link target frames: add target attribute to struct box, add frame to struct content_html_object and html_fetch_object().
svn path=/import/netsurf/; revision=1849
2005-08-20 22:52:20 +00:00
John Mark Bell
58d9b45e81
[project @ 2005-08-14 23:56:15 by jmb]
...
Move imagemap.[ch] into render/
Make imagemap URL extraction use box_extract_link
svn path=/import/netsurf/; revision=1847
2005-08-14 23:56:15 +00:00
James Bursa
419517f0aa
[project @ 2005-08-07 21:28:48 by bursa]
...
Improvements to frames. Fix bug with BR at end of inline container.
svn path=/import/netsurf/; revision=1843
2005-08-07 21:28:48 +00:00
John Mark Bell
e37acd498f
[project @ 2005-07-27 22:49:53 by jmb]
...
Mark invalid CSS contents with an error so they get flushed from the cache.
svn path=/import/netsurf/; revision=1828
2005-07-27 22:49:53 +00:00
James Bursa
9b78daf135
[project @ 2005-07-02 18:17:51 by bursa]
...
Rewrite calculation of box minimum and maximum widths to improve layout of many pages. Move calculation of column types and border collapsing to box tree normalising stage, since they are layout independent. Add window height parameter to layout and make <html> and <body> at least window height.
svn path=/import/netsurf/; revision=1777
2005-07-02 18:17:51 +00:00
Richard Wilson
b88a81b9d9
[project @ 2005-06-23 17:22:28 by rjw]
...
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2.
svn path=/import/netsurf/; revision=1761
2005-06-23 17:22:28 +00:00