Commit Graph

1414 Commits

Author SHA1 Message Date
John Mark Bell c3f2972d03 Another blatent use-after-free
svn path=/trunk/netsurf/; revision=9713
2009-12-03 22:12:43 +00:00
John Mark Bell f6fbe6ef96 Fix blatent use-after-free bug.
svn path=/trunk/netsurf/; revision=9712
2009-12-03 22:10:56 +00:00
John Mark Bell dea67b984a Modern OSLib (as of 3 months ago) no longer has colourtrans_CURRENT_MODE.
Use os_CURRENT_MODE, instead.

svn path=/trunk/netsurf/; revision=9710
2009-12-02 16:30:44 +00:00
John Tytgat 2261b616f6 - content/urldb.c(auth_data): Removed;
(prot_space_data): Added, it lives linked in the leaf host_part
  struct and together with its scheme and port (which defins canonical root
  url) and realm this defines a protection space.
  (path_data): Removed auth_data field and replaced by a prot_space_data
  pointer.
  (host_part::prot_space): Added linked list of protection space data
  structs.
  (urldb_get_auth_details): Given an URL fetch fetches its auth.
  (urldb_set_auth_details): Creates or updates the contents of a
  protection space to which given URL belongs.
  (urldb_destroy_host_tree): Delete protection data space structures
  using urldb_destroy_prot_space.
  (urldb_destroy_prot_space): Added.
- content/urldb.h(urldb_get_auth_details): Added realm parameter.
- content/fetchers/fetch_curl.c(fetch_curl_set_options): Update
  urldb_get_auth_details call (we don't know realm at this point).
- content/fetchcache.c(fetchcache_callback, fetchcache_auth): At FETCH_AUTH,
  use realm to determine if we really don't know auth data and if so,
  refetch content.
- content/content.h(struct content): Add content::tried_with_auth.
- content/content.c(content_create): Initialize content::tried_with_auth.
- riscos/401login.c(ro_gui_401login_open): Show known authentication
  data in dialogue so user can see what was wrong with it and correct it.

Solves bug #2830829.

svn path=/trunk/netsurf/; revision=9045
2009-08-04 23:02:23 +00:00
John Mark Bell bbdb07fe16 Fix RISC OS and Amiga builds.
The sooner this stuff is in the core, the better.

svn path=/trunk/netsurf/; revision=8827
2009-07-27 18:01:54 +00:00
John Mark Bell ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell 6e13c2fb0a Scale font sizes, for better accuracy.
svn path=/trunk/netsurf/; revision=8657
2009-07-21 16:55:35 +00:00
John Mark Bell 2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Michael Drake 8365d46eb7 Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.
svn path=/trunk/netsurf/; revision=8513
2009-07-14 10:57:07 +00:00
Vincent Sanders 86232d72a6 next round of plotter refactor
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Vincent Sanders 680298e61c plotters line refactor
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
Vincent Sanders f9ecd56f62 ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Vincent Sanders 0ade453958 Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
Vincent Sanders 1165edf662 remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
John Mark Bell a3e205bbd9 Constify ro_uri_launch()
If the URL is too long to fit into a non-indirected ANT URLLoad message, then skip the ANT URLLoad broadcast and jump straight to using URI_Dispatch. 
We don't support indirected ANT URLLoad messages as their potential for memory leakage is too great.

svn path=/trunk/netsurf/; revision=8233
2009-07-01 12:05:51 +00:00
Michael Drake 26cee820f1 Simplify RISC OS bitmap plotter.
svn path=/trunk/netsurf/; revision=8196
2009-06-30 13:16:29 +00:00
Vincent Sanders aa26843411 Improve bitmap plotter API
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
John Mark Bell 0404a802a7 Free path once we're finished with it.
svn path=/trunk/netsurf/; revision=8169
2009-06-29 22:18:05 +00:00
John Mark Bell ca96353d9f Merged revisions 7764-7977,7979-8058 via svnmerge from
svn://svn.netsurf-browser.org/branches/paulblokus/textinput

........
  r7769 | paulblokus | 2009-06-11 22:26:16 +0100 (Thu, 11 Jun 2009) | 4 lines
  
  replace global history window with an empty window for future tests
  add the necessary files
  first lines ported
........
  r7771 | paulblokus | 2009-06-11 23:51:46 +0100 (Thu, 11 Jun 2009) | 1 line
  
  more functions
........
  r7772 | paulblokus | 2009-06-12 02:07:36 +0100 (Fri, 12 Jun 2009) | 1 line
  
  redraw working
........
  r7777 | paulblokus | 2009-06-12 11:35:45 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  plotter fix
  make use of the provided clipping rectangle
........
  r7781 | paulblokus | 2009-06-12 16:26:51 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  callbacks for taxtarea to request a [caret]redraw
  basic caret handling drawing
........
  r7782 | paulblokus | 2009-06-12 22:36:50 +0100 (Fri, 12 Jun 2009) | 1 line
  
  single character insertion
........
  r7783 | paulblokus | 2009-06-12 22:41:37 +0100 (Fri, 12 Jun 2009) | 1 line
  
  single character insertion
........
  r7784 | paulblokus | 2009-06-12 23:55:40 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  fixed caret clipping
  arrows, delete and backspace
........
  r7812 | paulblokus | 2009-06-16 14:55:41 +0100 (Tue, 16 Jun 2009) | 1 line
  
  remove bug causing NS hang on \n in textarea
........
  r7816 | paulblokus | 2009-06-16 16:29:48 +0100 (Tue, 16 Jun 2009) | 1 line
  
  Enter, Home, End keys
........
  r7817 | paulblokus | 2009-06-16 16:56:16 +0100 (Tue, 16 Jun 2009) | 1 line
  
  Ctrl + Home/End
........
  r7818 | paulblokus | 2009-06-16 17:16:51 +0100 (Tue, 16 Jun 2009) | 1 line
  
  redraw caret only on caret moves
........
  r7821 | paulblokus | 2009-06-16 20:18:30 +0100 (Tue, 16 Jun 2009) | 1 line
  
  line end/start delete
........
  r7822 | paulblokus | 2009-06-16 23:43:42 +0100 (Tue, 16 Jun 2009) | 1 line
  
  selection drawing + select all
........
  r7823 | paulblokus | 2009-06-17 02:31:07 +0100 (Wed, 17 Jun 2009) | 3 lines
  
  auto scrolling on caret moves
  clear selection
........
  r7845 | paulblokus | 2009-06-18 17:35:03 +0100 (Thu, 18 Jun 2009) | 1 line
  
  page up/down
........
  r7846 | paulblokus | 2009-06-18 17:38:45 +0100 (Thu, 18 Jun 2009) | 1 line
  
   remove unnecessary fix
........
  r7847 | paulblokus | 2009-06-18 18:00:16 +0100 (Thu, 18 Jun 2009) | 1 line
  
  clipping fixes
........
  r7849 | paulblokus | 2009-06-18 18:21:02 +0100 (Thu, 18 Jun 2009) | 1 line
  
  scroll fix
........
  r7850 | paulblokus | 2009-06-18 18:45:13 +0100 (Thu, 18 Jun 2009) | 1 line
  
  simplified redraw request logic
........
  r7855 | paulblokus | 2009-06-18 19:56:24 +0100 (Thu, 18 Jun 2009) | 1 line
  
  front end passing mouse events
........
  r7858 | paulblokus | 2009-06-18 22:18:39 +0100 (Thu, 18 Jun 2009) | 3 lines
  
  drag selection
  bug fixes
........
  r7860 | paulblokus | 2009-06-18 23:32:39 +0100 (Thu, 18 Jun 2009) | 3 lines
  
  take selection into account on keypress of different types
  a few bugs fixed
........
  r7876 | paulblokus | 2009-06-19 13:43:07 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  pango nsfont_split fix
  a few textarea fixes
........
  r7879 | paulblokus | 2009-06-19 17:33:10 +0100 (Fri, 19 Jun 2009) | 4 lines
  
  newline handling seems to work this way
  clear selection on mouse click
  more bug fixes
........
  r7880 | paulblokus | 2009-06-19 18:16:27 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  no caret option
  selection follows drag
........
  r7883 | paulblokus | 2009-06-19 19:08:44 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  o width selection bug fix
  caret at correct side of drag selection
........
  r7918 | paulblokus | 2009-06-22 21:01:28 +0100 (Mon, 22 Jun 2009) | 3 lines
  
  fix caret positioning at line end
  CR removal in input methods
........
  r7919 | paulblokus | 2009-06-22 21:34:39 +0100 (Mon, 22 Jun 2009) | 1 line
  
  fix crash on 0 length text
........
  r7926 | paulblokus | 2009-06-23 09:53:56 +0100 (Tue, 23 Jun 2009) | 3 lines
  
  change LF into spaces for single line widget
  text normalisation at one place
........
  r7931 | paulblokus | 2009-06-23 10:51:25 +0100 (Tue, 23 Jun 2009) | 1 line
  
  cleanup
........
  r7933 | paulblokus | 2009-06-23 11:17:22 +0100 (Tue, 23 Jun 2009) | 1 line
  
  fix selection draw
........
  r7935 | paulblokus | 2009-06-23 11:41:30 +0100 (Tue, 23 Jun 2009) | 1 line
  
  guard readonly
........
  r7942 | paulblokus | 2009-06-24 08:19:39 +0100 (Wed, 24 Jun 2009) | 1 line
  
  applied changes suggested by jmb
........
  r7943 | paulblokus | 2009-06-24 09:04:49 +0100 (Wed, 24 Jun 2009) | 1 line
  
  little fixes
........
  r7945 | paulblokus | 2009-06-24 12:50:14 +0100 (Wed, 24 Jun 2009) | 1 line
  
  correct line length and wrapping
........
  r7947 | paulblokus | 2009-06-24 14:32:36 +0100 (Wed, 24 Jun 2009) | 3 lines
  
  fixed page up/down broken in last commit
  changed logic for caret positioning on soft breaks
........
  r7949 | paulblokus | 2009-06-24 16:31:42 +0100 (Wed, 24 Jun 2009) | 1 line
  
  remove temporary/test code
........
  r7975 | paulblokus | 2009-06-25 16:00:46 +0100 (Thu, 25 Jun 2009) | 1 line
  
  changes suggested by jmb
........
  r7976 | paulblokus | 2009-06-25 16:33:23 +0100 (Thu, 25 Jun 2009) | 1 line
  
  added ro_ prefix to RISC OS textarea code
........

svn path=/trunk/netsurf/; revision=8060
2009-06-27 13:59:25 +00:00
John Mark Bell 6dd385591d NETSURF_USE_DRAW should apply to the Draw content handler only.
Introduce NETSURF_USE_DRAW_EXPORT to toggle draw export support.
Fix up a bunch of stuff related to this.
Fix warnings caused by disabling the Sprite renderer.

svn path=/trunk/netsurf/; revision=7899
2009-06-20 19:38:56 +00:00
John Mark Bell dbba3b4d37 Whoops. Lose spurious ')'.
svn path=/trunk/netsurf/; revision=7646
2009-05-30 00:29:46 +00:00
John Mark Bell 732d940744 Stop ro_gui_get_icon_string() returning a pointer to a location on the stack.
Make explicit the semantics that strings returned from this call are transient
and will be invalidated by subsequent calls.

svn path=/trunk/netsurf/; revision=7645
2009-05-30 00:26:04 +00:00
John Mark Bell 5404e91fcd Simplify code
svn path=/trunk/netsurf/; revision=7644
2009-05-30 00:23:07 +00:00
John Mark Bell f959f5b679 A bunch of tidying. Also squash NULL-pointer dereferences.
svn path=/trunk/netsurf/; revision=7643
2009-05-29 23:43:53 +00:00
John Mark Bell 21c78155b5 Actually catch error and deal with it
svn path=/trunk/netsurf/; revision=7642
2009-05-29 23:25:38 +00:00
John Mark Bell b03d52e6d9 Ensure we don't read beyond the end of the array of available matches. Set any remaining saved pointers to NULL.
svn path=/trunk/netsurf/; revision=7641
2009-05-29 23:23:02 +00:00
John Mark Bell cda586e6dc Add missing break statement
svn path=/trunk/netsurf/; revision=7640
2009-05-29 23:14:16 +00:00
John Mark Bell 0fee18ebdc Add missing return statement.
svn path=/trunk/netsurf/; revision=7639
2009-05-29 23:13:28 +00:00
John Mark Bell 1db6b5d93e Tidy up somewhat. Lose redundant assignment.
svn path=/trunk/netsurf/; revision=7638
2009-05-29 23:12:18 +00:00
John Mark Bell 8d2688e121 Add missing return statement.
svn path=/trunk/netsurf/; revision=7637
2009-05-29 23:05:44 +00:00
John Mark Bell f0adddc334 Lose redundant variable
svn path=/trunk/netsurf/; revision=7636
2009-05-29 23:04:26 +00:00
John Mark Bell d09d540fff Add missing return.
svn path=/trunk/netsurf/; revision=7635
2009-05-29 23:02:59 +00:00
John Mark Bell 80ae7c78b3 Remove redundant variable
svn path=/trunk/netsurf/; revision=7634
2009-05-29 23:02:13 +00:00
John Mark Bell 63d4f28487 Add missing return statement.
svn path=/trunk/netsurf/; revision=7633
2009-05-29 23:00:34 +00:00
John Mark Bell 7c0ded8972 Lose redundant assignment
svn path=/trunk/netsurf/; revision=7632
2009-05-29 22:59:42 +00:00
John Mark Bell 7eed46e1fa Add missing return in error case.
svn path=/trunk/netsurf/; revision=7631
2009-05-29 22:58:13 +00:00
John Mark Bell 9b4a382d68 Insert a redundant return, as scan-build fails to notice that die() never returns.
svn path=/trunk/netsurf/; revision=7629
2009-05-29 22:56:09 +00:00
John Mark Bell 5d75e40700 Lose redundant code. Actually ensure that mode is initialised in ro_gui_theme_update_toolbar_icon().
svn path=/trunk/netsurf/; revision=7598
2009-05-28 12:38:36 +00:00
John Mark Bell 243c1ba03f Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
svn path=/trunk/netsurf/; revision=7593
2009-05-28 10:39:53 +00:00
John Mark Bell 89396e7d2a Avoid dereferencing NULL pointer. Tighten up other icon string initialisation, too.
svn path=/trunk/netsurf/; revision=7592
2009-05-28 00:55:04 +00:00
John Mark Bell fd932d69b9 Set bit 4 of extended window flags byte (makes Wimp_GetPointerInfo respond to shaded icons on RO5). I've no idea why this wasn't done years ago.
svn path=/trunk/netsurf/; revision=7402
2009-05-06 00:14:32 +00:00
John Mark Bell daf7a52dd6 Hubbub is no longer optional.
Remove libxml2 parser binding.

svn path=/trunk/netsurf/; revision=7115
2009-04-17 00:54:27 +00:00
John Mark Bell 2531079866 Revert r6973. Apparently, it causes loads of problems.
svn path=/trunk/netsurf/; revision=7047
2009-04-05 19:17:24 +00:00
John Mark Bell 87add71110 Purge WITH_DRAW_EXPORT
svn path=/trunk/netsurf/; revision=6980
2009-03-29 00:24:14 +00:00
John Mark Bell f0432b9f7b Purge WITH_SAVE_COMPLETE
svn path=/trunk/netsurf/; revision=6979
2009-03-29 00:22:20 +00:00
John Mark Bell 64d47f313a Aliasing fixes
svn path=/trunk/netsurf/; revision=6977
2009-03-29 00:14:28 +00:00
John Mark Bell e240c200d5 Avoid potentially unsafe writes through a const pointer.
svn path=/trunk/netsurf/; revision=6974
2009-03-28 19:59:46 +00:00
John Mark Bell ce10998776 More aliasing
svn path=/trunk/netsurf/; revision=6973
2009-03-28 19:19:05 +00:00
John Mark Bell 9badebaf4e More aliasing
svn path=/trunk/netsurf/; revision=6972
2009-03-28 19:17:08 +00:00
John Mark Bell 76755556e0 Aliasing fun. This is ugly.
svn path=/trunk/netsurf/; revision=6971
2009-03-28 19:10:29 +00:00