Commit Graph

46 Commits

Author SHA1 Message Date
John Mark Bell b5b280dc96 Fix RISC OS build
svn path=/trunk/netsurf/; revision=10405
2010-04-15 22:49:22 +00:00
John Mark Bell 303401c050 Fix for hlcache
svn path=/trunk/netsurf/; revision=10248
2010-04-05 22:12:17 +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 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 b98f105b24 Purge WITH_AUTH
svn path=/trunk/netsurf/; revision=6600
2009-02-22 15:13:10 +00:00
John Tytgat 203b3289b8 - Include utils/config.h before each WITH_* test entiry enabling/disabling the object file.
- Add same test in corresponding header file (if there is one)
- riscos/uri.c: include riscos/uri.h and have function definitions matching the declarations.
- Disable PDF debug logging.

svn path=/trunk/netsurf/; revision=4769
2008-07-26 23:42:24 +00:00
John Tytgat 5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +00:00
John Mark Bell 23fb72ea6b The core code has always assumed a locale of "C".
Do not change the locale globally, else things will break in weird and 
wonderful ways.

Introduce utils/locale.[ch], which provide locale-specific wrappers for various 
functions (currently just the <ctype.h> ones).

Fix up the few places I can see that actually require that the underlying 
locale is paid attention to.

Some notes:

  1) The GTK frontend code has not been touched. It is possible that reading of 
     numeric values (e.g. from the preferences dialogue) may break with this 
     change, particularly in locales that use something other than '.' as their
     decimal separator.
  2) The search code is left unchanged (i.e. assuming a locale of "C"). 
     This may break case insensitive matching of non-ASCII characters. 
     I doubt that ever actually worked, anyway. In future, it should use
     Unicode case conversion to achieve the same effect.
  3) The text input handling in the core makes use of isspace() to detect
     word boundaries. This is fine for western languages (even in the C locale,
     which it's currently assuming). It will, however, break for CJK et. al. 
     (this has always been the case, rather than being a new issue)
  4) text-transform uses locale-specific variants of to{lower,upper}. In future
     this should probably be performing Unicode case conversion. This is the
     only part of the core code that makes use of locale information.

In future, if you require locale-specific behaviour, do the following:

  setlocale(LC_<whatever>, "");
  <your operation(s) here>
  setlocale(LC_<whatever>, "C");

  The first setlocale will change the current locale to the native environment.
  The second setlocale will reset the current locale to "C".
  Any value other than "" or "C" is probably a bug, unless there's a really
  good reason for it.

In the long term, it is expected that all locale-dependent code will reside in 
platform frontends -- the core being wholly locale agnostic (though assuming 
"C" for things like decimal separators).


svn path=/trunk/netsurf/; revision=4153
2008-05-13 14:37:44 +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
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
Richard Wilson 9e3c519c2e Remove redundant close window calls.
svn path=/trunk/netsurf/; revision=3247
2007-04-07 22:53:59 +00:00
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson 1999becb42 Finish event based GUI system transition and begin code cleanup.
svn path=/trunk/netsurf/; revision=2922
2006-09-06 14:44:42 +00:00
John Mark Bell fa5156cfca Handle omitted realm
svn path=/trunk/netsurf/; revision=2602
2006-05-14 23:35:15 +00:00
Richard Wilson c7f77b0165 Finish history cloning.
svn path=/trunk/netsurf/; revision=2547
2006-04-22 18:24:18 +00:00
John Mark Bell c09eb457df Unify information databases
svn path=/trunk/netsurf/; revision=2519
2006-04-09 23:21:13 +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 5ce5fe084c [project @ 2006-02-19 18:26:23 by jmb]
Rewrite HTTP authentication.
Fix extraction of realm from WWW-Authenticate header.
Tidy up login dialog code.

svn path=/import/netsurf/; revision=2085
2006-02-19 18:26:23 +00:00
Richard Wilson ad82fceb2e [project @ 2005-12-31 04:34:38 by rjw]
Allow multiple login windows. Plug memory leaks.

svn path=/import/netsurf/; revision=1911
2005-12-31 04:34:38 +00:00
Adrian Lees 4a5dc6d5cc [project @ 2005-07-16 05:54:45 by adrianl]
Thumbnails displayed and dragged for full page save; spelling correction

svn path=/import/netsurf/; revision=1793
2005-07-16 05:54:45 +00:00
James Bursa 2583180b79 [project @ 2005-01-24 22:14:59 by bursa]
Simplify browser_window_go(). Replace browser_window_go_post() with browser_window_go() where possible.

svn path=/import/netsurf/; revision=1466
2005-01-24 22:14:59 +00:00
John Mark Bell 77de9c1336 [project @ 2005-01-03 02:09:20 by jmb]
Shift + Click == download

svn path=/import/netsurf/; revision=1429
2005-01-03 02:09:20 +00:00
John Mark Bell 8334683068 [project @ 2005-01-02 03:58:20 by jmb]
xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c)

svn path=/import/netsurf/; revision=1419
2005-01-02 03:58:21 +00:00
James Bursa 7824e830cf [project @ 2005-01-01 22:14:06 by bursa]
xcalloc/xrealloc/xstrdup-purge week.

svn path=/import/netsurf/; revision=1417
2005-01-01 22:14:06 +00:00
Richard Wilson 32db7e04d0 [project @ 2004-12-09 10:30:43 by rjw]
Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls.

svn path=/import/netsurf/; revision=1394
2004-12-09 10:30:44 +00:00
John Mark Bell 49ce807e3c [project @ 2004-10-01 21:31:55 by jmb]
A somewhat better implementation of referrers which no longer sends the referer if the URL schemes don't match.

Things to do:
1) Preservation of referer across redirects (see comment in browser.c:284)
2) GUI templates/code for configuration of referer sending (simple on/off toggle only)
3) Make referer sending when fetching objects/stylesheets for a page pay attention to option_send_referer?
4) Handle the case where the referer is in the form of http://moo:foo@mysite.com/ (ie the login details embedded in the referer - not good).

svn path=/import/netsurf/; revision=1297
2004-10-01 21:31:55 +00:00
John Mark Bell 39ad1632eb [project @ 2004-10-01 00:06:49 by jmb]
Send HTTP referer header. This is _only_ sent when a link is clicked (theoretically, at least).

svn path=/import/netsurf/; revision=1296
2004-10-01 00:06:49 +00:00
John Mark Bell c9bd6fa9fc [project @ 2004-08-09 16:11:58 by jmb]
Rework the interface of the URL handing module to allow for multiple error types.
Modify save_complete URL rewriting appropriately.

svn path=/import/netsurf/; revision=1206
2004-08-09 16:11:58 +00:00
Richard Wilson abaa8a9093 [project @ 2004-07-16 16:33:44 by rjw]
Various fixes for the GUI. Persistant windows are closed when upon a change of content. Hotlist saves in the same format as !Browse. Neater login window. Support for interactive help from hotlist windows.

svn path=/import/netsurf/; revision=1081
2004-07-16 16:33:45 +00:00
John Tytgat b08c7135fe [project @ 2004-06-20 19:49:40 by joty]
Src cleanup.

svn path=/import/netsurf/; revision=981
2004-06-20 19:49:40 +00:00
James Bursa 29340cf8c8 [project @ 2004-05-08 20:44:00 by bursa]
Break out ro_gui_dialog_load_template(). Replace xcalloc() with malloc() and add some error handling.

svn path=/import/netsurf/; revision=844
2004-05-08 20:44:00 +00:00
James Bursa 1c85bf0429 [project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them.

svn path=/import/netsurf/; revision=578
2004-03-02 18:02:41 +00:00
James Bursa 7897a98a4c [project @ 2004-02-25 15:12:57 by bursa]
Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history.

svn path=/import/netsurf/; revision=566
2004-02-25 15:12:58 +00:00
John Mark Bell 62245d13ec [project @ 2004-01-05 02:10:59 by jmb]
Add ability to turn off browser features in build.
This may be useful when hunting down bugs.

svn path=/import/netsurf/; revision=480
2004-01-05 02:10:59 +00:00
John Mark Bell 05d75afd89 [project @ 2003-12-31 17:09:03 by jmb]
Rename login template to "login".
Use OS_GBPB9 to get filename of plugin logos.

svn path=/import/netsurf/; revision=474
2003-12-31 17:09:03 +00:00
John Mark Bell 3d7c7a7050 [project @ 2003-12-29 22:50:43 by jmb]
Add some debugging.

svn path=/import/netsurf/; revision=470
2003-12-29 22:50:43 +00:00
John Mark Bell 7e132ad0bc [project @ 2003-12-27 00:35:54 by jmb]
Return true after handling escape keypress.

svn path=/import/netsurf/; revision=452
2003-12-27 00:35:54 +00:00
John Mark Bell 93dfe6dfe8 [project @ 2003-12-26 22:12:39 by jmb]
Move constant global data into a new file. This makes things a bit
tidier.
Add help: and home: shortcut URLs.

svn path=/import/netsurf/; revision=449
2003-12-26 22:12:39 +00:00
John Mark Bell 78f9b20b3e [project @ 2003-12-26 18:18:17 by jmb]
Keypress handling in dialog boxes.

svn path=/import/netsurf/; revision=446
2003-12-26 18:18:17 +00:00
James Bursa 20a6f739dc [project @ 2003-12-26 16:21:46 by bursa]
Rewrite get_host_from_url() to use uri library.

svn path=/import/netsurf/; revision=444
2003-12-26 16:21:46 +00:00
John Mark Bell 6d036cb630 [project @ 2003-10-26 12:41:51 by jmb]
Make fetch abort finish when auth is required.
Lose the right click performs the opposite action stuff in the login
dialog.

svn path=/import/netsurf/; revision=391
2003-10-26 12:41:51 +00:00
James Bursa 350cfd3570 [project @ 2003-10-26 11:40:50 by bursa]
Fix caret and buffer allocations.

svn path=/import/netsurf/; revision=390
2003-10-26 11:40:50 +00:00
John Mark Bell f07a47d252 [project @ 2003-10-26 00:09:27 by jmb]
Fix bug involving while loop exiting early.
Move the xstrdup of the realm into riscos/401login.c

svn path=/import/netsurf/; revision=389
2003-10-26 00:09:27 +00:00
John Mark Bell c9e188a4d1 [project @ 2003-10-25 19:20:13 by jmb]
HTTP Auth login improved (greatly).
Addresses all three issues in the previous version.

svn path=/import/netsurf/; revision=382
2003-10-25 19:20:13 +00:00
James Bursa 28f974f00f [project @ 2003-10-25 14:13:49 by bursa]
URL encoded POST support.

svn path=/import/netsurf/; revision=375
2003-10-25 14:13:49 +00:00
John Mark Bell caac2628a7 [project @ 2003-10-23 00:09:16 by jmb]
Enable logging into sites which require Basic Authentication
Has a couple of issues:
	1) Opens the page in the first window in the list
	2) Doesn't save the login details so you have to log in to each page.
	3) The call to ro_gui_401login_open shouldn't be there.

svn path=/import/netsurf/; revision=372
2003-10-23 00:09:17 +00:00