Commit Graph

3053 Commits

Author SHA1 Message Date
Michael Drake
1952b8b9ba Stop min gif delay option growing every time choices are saved on nsgtk. Use same scale factor as RISC OS.
svn path=/trunk/netsurf/; revision=3805
2008-01-29 20:46:10 +00:00
Michael Drake
0c311cf6a2 Add stylesheet for GTK specific rules.
svn path=/trunk/netsurf/; revision=3802
2008-01-29 14:00:56 +00:00
Michael Drake
b74a1a173e Tidy default form element styles.
svn path=/trunk/netsurf/; revision=3801
2008-01-29 13:03:29 +00:00
Michael Drake
0241f21d4d Fix syntax.
svn path=/trunk/netsurf/; revision=3800
2008-01-29 01:18:23 +00:00
Michael Drake
3edfd4feb7 Reinstate things lost in the last checkins.
svn path=/trunk/netsurf/; revision=3799
2008-01-29 01:14:20 +00:00
Michael Drake
30b76c4dfa No need to recalculate a value we already have.
svn path=/trunk/netsurf/; revision=3798
2008-01-29 01:01:02 +00:00
Michael Drake
38dcd3f172 Apply min font size config option to radio icons and checkboxes.
svn path=/trunk/netsurf/; revision=3797
2008-01-29 00:42:15 +00:00
Michael Drake
416c81208b Make box dump show "gadget".
svn path=/trunk/netsurf/; revision=3796
2008-01-28 13:48:59 +00:00
James Bursa
58724040e5 Render borders after backgrounds. Handle boxes with overflow hidden or scroll and borders correctly. Update copyrights.
svn path=/trunk/netsurf/; revision=3792
2008-01-28 04:33:39 +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
Michael Drake
75fe183d01 Apply default margin to select and textarea elements too.
svn path=/trunk/netsurf/; revision=3790
2008-01-28 02:25:30 +00:00
Michael Drake
882c04c2fb Only needed the vertical position changed.
svn path=/trunk/netsurf/; revision=3789
2008-01-28 02:01:04 +00:00
John Mark Bell
9c93407fce Thinly paper over gaping holes in the build system.
svn path=/trunk/netsurf/; revision=3788
2008-01-28 01:46:29 +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
Michael Drake
32fe1bd1bf Replace accidentally checked in files with previous ones.
svn path=/trunk/netsurf/; revision=3786
2008-01-28 01:11:37 +00:00
Michael Drake
49fce64c1a Fix vertical position of images with margin/borders/padding.
svn path=/trunk/netsurf/; revision=3785
2008-01-28 00:58:31 +00:00
Michael Drake
48bdeb34c8 Ensure images within inline-blocks are shown properly. Fixed by zamez.
svn path=/trunk/netsurf/; revision=3783
2008-01-27 22:25:11 +00:00
Michael Drake
fcd30e0819 Revert r3781.
svn path=/trunk/netsurf/; revision=3782
2008-01-27 19:08:27 +00:00
Michael Drake
2a28537fe6 Background area extends to border edge.
svn path=/trunk/netsurf/; revision=3781
2008-01-27 19:06:11 +00:00
Michael Drake
f5d07c4988 Background area extends to border edge.
svn path=/trunk/netsurf/; revision=3780
2008-01-27 18:15:56 +00:00
Michael Drake
b2b6fa0f10 Make inline-blocks have margins. Add defualt margin around form inputs.
svn path=/trunk/netsurf/; revision=3779
2008-01-27 17:39:14 +00:00
Michael Drake
053f2f830c Hopefully fix inline-block positioning. (Stops form elements from overlapping.)
svn path=/trunk/netsurf/; revision=3778
2008-01-27 11:59:01 +00:00
Michael Drake
252aa870f8 No need to reduce box height when adding scrollbar.
svn path=/trunk/netsurf/; revision=3777
2008-01-26 23:03:30 +00:00
John Mark Bell
ae3555ccdd Fixes for targetting NetBSD (Thanks to Adam Hoka)
svn path=/trunk/netsurf/; revision=3775
2008-01-26 16:44:17 +00:00
Michael Drake
205fe6ea65 Remove old TODO docs.
svn path=/trunk/netsurf/; revision=3761
2008-01-22 18:55:10 +00:00
Michael Drake
f69ce8d094 Add icon to distinguish online links.
svn path=/trunk/netsurf/; revision=3744
2008-01-21 20:01:36 +00:00
Michael Drake
e5cadb5afe Update to real new welcome page path.
svn path=/trunk/netsurf/; revision=3735
2008-01-19 23:42:26 +00:00
John Mark Bell
51160e3d34 Fix symlinks
svn path=/trunk/netsurf/; revision=3734
2008-01-19 23:33:21 +00:00
John Mark Bell
23053f25da Oops; missed default homepage
svn path=/trunk/netsurf/; revision=3733
2008-01-19 23:30:30 +00:00
John Mark Bell
ed3b59964d Fix menu entries
svn path=/trunk/netsurf/; revision=3732
2008-01-19 23:29:28 +00:00
Michael Drake
7ef6638af9 Link to new welcome page.
svn path=/trunk/netsurf/; revision=3731
2008-01-19 23:26:58 +00:00
Michael Drake
db79ba2042 Update some paths. (Not all done.)
svn path=/trunk/netsurf/; revision=3730
2008-01-19 23:22:21 +00:00
John Mark Bell
8798a3ccd2 Rename about page
svn path=/trunk/netsurf/; revision=3728
2008-01-19 23:15:48 +00:00
John Mark Bell
54da4474f7 Remove old files
svn path=/trunk/netsurf/; revision=3723
2008-01-19 23:01:32 +00:00
Michael Drake
33ea795dea Update about page to use new CSS file and tidy.
svn path=/trunk/netsurf/; revision=3719
2008-01-19 22:42:48 +00:00
John Mark Bell
f8d8a7ef38 Remove unused directories
svn path=/trunk/netsurf/; revision=3718
2008-01-19 22:17:16 +00:00
John Mark Bell
02e2fab6a3 More work on cookie parser. Our junk value handling is now significantly 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
2008-01-19 01:51:39 +00:00
John Mark Bell
e5e2eb09f6 Work on cookies to bring our behaviour closer to the spec and other browsers:
+ 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
2008-01-17 20:00:55 +00:00
John Mark Bell
2fa8e656a1 The previous fix was broken -- URI paths include the leafname.
Make url_path() return the full path (including the leafname).
Defaulted cookie path attributes have the leafname and trailing slash stripped.
Add testcase for defaulted path.
Fix testcase conditions for paths with leafnames.

svn path=/trunk/netsurf/; revision=3693
2008-01-07 12:01:11 +00:00
John Mark Bell
74078b6e36 Fix potential crash in urldb_dump()
Relax 4.3.2(i) checking (Cookie path must be a prefix of URL path). We now permit a cookie path containing the document leafname -- we strip the leafname from the path.
Make testsuite build again.
Add tests for cookie path checking.

svn path=/trunk/netsurf/; revision=3692
2008-01-07 04:58:06 +00:00
John Mark Bell
252ad5c476 Add url_leafname()
Remove spurious * from url_host_is_ip_address()

svn path=/trunk/netsurf/; revision=3691
2008-01-07 04:54:08 +00:00
John Tytgat
76416f1964 GCCSDK 4 build support.
svn path=/trunk/netsurf/; revision=3674
2007-12-28 15:43:57 +00:00
Daniel Silverstone
13b91169fd Protect <pre> fix in cases where c->style is NULL
svn path=/trunk/netsurf/; revision=3673
2007-12-23 16:09:02 +00:00
Daniel Silverstone
23781fb862 An INLINE_CONTAINER which contains a TEXT which is zero chars long but *is* in a PRE white-space rule *DOES* contain a text child.
svn path=/trunk/netsurf/; revision=3672
2007-12-23 14:15:11 +00:00
Daniel Silverstone
6ee6a8c8dc Initial work on new makesystem. See top of Makefile.unix for notes. Not yet finished, will make ML posting when done.
svn path=/trunk/netsurf/; revision=3671
2007-12-22 21:15:58 +00:00
Michael Drake
6a11f56dca Set SVG filetype's name.
svn path=/trunk/netsurf/; revision=3670
2007-12-16 19:36:28 +00:00
Michael Drake
99596c7751 Updated Dutch translation by Simon Voortman and Gerard van Katwijk.
svn path=/trunk/netsurf/; revision=3669
2007-12-12 20:07:03 +00:00
John Mark Bell
aaa9eba48b Fix non-ASCII text input for GTK build (Dmitry Artamonow)
svn path=/trunk/netsurf/; revision=3667
2007-12-11 19:34:49 +00:00
James Bursa
5fdbe77e3e Implement ro_save_draw_path() to enable Draw export of SVGs.
svn path=/trunk/netsurf/; revision=3666
2007-12-11 04:07:35 +00:00
James Bursa
4525ffbd91 Plug a memory leak in ro_plot_path().
svn path=/trunk/netsurf/; revision=3665
2007-12-11 04:06:49 +00:00