summaryrefslogtreecommitdiff
path: root/riscos/plugin.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove old plugin.c.Michael Drake2011-10-061-1859/+0
| | | | svn path=/trunk/netsurf/; revision=12967
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-189/+255
| | | | svn path=/trunk/netsurf/; revision=12283
* Remove redundant parameter from content_open APIJohn Mark Bell2011-03-101-2/+1
| | | | svn path=/trunk/netsurf/; revision=11964
* Fix broken CONTENT_PLUGIN API.Chris Young2011-03-061-5/+20
| | | | | | | Add a default content handler for Amiga using the plugin interface, which passes unknown files (currently images only) through DataTypes. svn path=/trunk/netsurf/; revision=11924
* Fix bug #3194007: stop emitting duplicate READY/DONE events.John Mark Bell2011-02-271-1/+3
| | | | | | | * Make content handlers responsible for setting READY/DONE state & emitting events. * Stop content_convert doing this when there is a registered convert function for the content type. svn path=/trunk/netsurf/; revision=11850
* Merge branches/stevef/toolbars to trunk.Steve Fryatt2011-02-201-5/+4
| | | | svn path=/trunk/netsurf/; revision=11741
* ConstifyJohn Mark Bell2011-02-141-1/+1
| | | | svn path=/trunk/netsurf/; revision=11680
* Pass clip rect as struct through content_redraw api. Update the front ends ↵Michael Drake2011-02-131-3/+2
| | | | | | to use this. Note only RO build tested. svn path=/trunk/netsurf/; revision=11670
* Purge FETCH_TYPE which is unused throughout NetSurf. Clearing a todo in ↵Daniel Silverstone2010-04-081-1/+0
| | | | | | llcachec. svn path=/trunk/netsurf/; revision=10300
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-1/+2
| | | | svn path=/trunk/netsurf/; revision=8752
* Purge NETSURF_USE_SSL and WITH_SSLJohn Mark Bell2009-02-221-4/+0
| | | | svn path=/trunk/netsurf/; revision=6599
* Remove unnecessary casting.John Tytgat2009-02-011-8/+8
| | | | svn path=/trunk/netsurf/; revision=6332
* - C strings have always an implicit NUL character at the end, no need to ↵John Tytgat2009-02-011-1/+1
| | | | | | | | specify an extra one. - riscos/configure/con_theme.c: removed spurious code line. svn path=/trunk/netsurf/; revision=6331
* 'unsigned long' -> 'colour' where it made sense.John Tytgat2008-09-281-1/+1
| | | | svn path=/trunk/netsurf/; revision=5459
* Merge Mike's tabs changes. Still needs some cleaning.Rob Kendrick2008-08-241-1/+2
| | | | svn path=/trunk/netsurf/; revision=5189
* - Include utils/config.h before each WITH_* test entiry enabling/disabling ↵John Tytgat2008-07-261-2/+3
| | | | | | | | | | 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
* - Compiler warning squashJohn Tytgat2008-07-261-2/+0
| | | | | | | - Changed a lineending \n\r -> \n for a couple of files. - More code style conformance. svn path=/trunk/netsurf/; revision=4762
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-191-0/+2
| | | | svn path=/trunk/netsurf/; revision=4098
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-9/+0
| | | | | | | | | | | | | | | | | | | | 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
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-16/+16
| | | | | | | | | | | | | | 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
* Ensure content owners check that they are still interested in a content John Mark Bell2007-03-181-1/+8
| | | | | | | | 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
* Fix handling of cookies in unverifiable transactions caused by a redirect ↵John Mark Bell2007-02-021-1/+1
| | | | | | from a fetch into a browser window which was varifiable. svn path=/trunk/netsurf/; revision=3165
* Handle cookies in unverifiable transactionsJohn Mark Bell2007-01-271-2/+2
| | | | svn path=/trunk/netsurf/; revision=3151
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Finish history cloning.Richard Wilson2006-04-221-2/+2
| | | | svn path=/trunk/netsurf/; revision=2547
* [project @ 2006-02-23 15:06:53 by jmb]John Mark Bell2006-02-231-2/+11
| | | | | | | | | | 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
* [project @ 2006-02-06 00:10:09 by jmb]John Mark Bell2006-02-061-6/+8
| | | | | | Implement HTTP caching algorithm; this should avoid stale cache entries being used. svn path=/import/netsurf/; revision=2059
* [project @ 2005-10-30 21:23:44 by bursa]James Bursa2005-10-301-8/+9
| | | | | | Add index parameter to plugin_open(). svn path=/import/netsurf/; revision=1876
* [project @ 2005-07-26 23:16:21 by jmb]John Mark Bell2005-07-261-160/+532
| | | | | | | | | Implement plugin streams properly (can now have multiple, simultaneous streams to a plugin). Fix race condition when performing non-file streams. Support for GETting an URL and streaming it to a plugin (this is untested, due to a lack of access to plugins that actually use this functionality). General source tidyup. svn path=/import/netsurf/; revision=1824
* [project @ 2005-04-13 21:58:28 by bursa]James Bursa2005-04-131-15/+16
| | | | | | Add fallback field to struct box for object fallback content. Add some checks for tree consistency to box_dump(). Rename struct plugin_params to object_param. Clean up box_object(), box_embed(), box_iframe(), and box_image(). Implement object fallback to contents if the fetch or conversion fails. svn path=/import/netsurf/; revision=1627
* [project @ 2005-04-09 22:56:34 by jmb]John Mark Bell2005-04-091-43/+19
| | | | | | Fix inappropriate free()s of talloced content svn path=/import/netsurf/; revision=1619
* [project @ 2005-02-03 10:04:06 by jmb]John Mark Bell2005-02-031-3/+12
| | | | | | | Fix issue with plugins embedded in a page requesting fetch of the same page on load. Add option to block popups. svn path=/import/netsurf/; revision=1482
* [project @ 2005-01-24 22:14:59 by bursa]James Bursa2005-01-241-2/+1
| | | | | | Simplify browser_window_go(). Replace browser_window_go_post() with browser_window_go() where possible. svn path=/import/netsurf/; revision=1466
* [project @ 2005-01-03 02:09:20 by jmb]John Mark Bell2005-01-031-1/+2
| | | | | | Shift + Click == download svn path=/import/netsurf/; revision=1429
* [project @ 2004-12-25 18:58:04 by jmb]John Mark Bell2004-12-251-2/+9
| | | | | | | Fix issue with streaming as file when handling unknown content length (plugin_convert may have been called prior to the streaming being set up, thus resulting in the file not being streamed) Lose spurious boolean in plugin_data struct. svn path=/import/netsurf/; revision=1411
* [project @ 2004-12-25 12:12:39 by jmb]John Mark Bell2004-12-251-30/+114
| | | | | | Support standalone plugins svn path=/import/netsurf/; revision=1410
* [project @ 2004-11-28 23:38:38 by jmb]John Mark Bell2004-11-281-2/+0
| | | | | | Ensure dimensions specified by HTML/CSS are adhered to, rather than resizing to what the plugin wants svn path=/import/netsurf/; revision=1375
* [project @ 2004-11-28 00:26:17 by jmb]John Mark Bell2004-11-281-23/+44
| | | | | | | | Bug fixes. Reformatting a plugin now works correctly in all cirumstances. Streaming also works better and reloading a page containing plugins will now work properly. svn path=/import/netsurf/; revision=1373
* [project @ 2004-10-01 21:31:55 by jmb]John Mark Bell2004-10-011-2/+2
| | | | | | | | | | | | 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
* [project @ 2004-10-01 00:06:49 by jmb]John Mark Bell2004-10-011-1/+1
| | | | | | Send HTTP referer header. This is _only_ sent when a link is clicked (theoretically, at least). svn path=/import/netsurf/; revision=1296
* [project @ 2004-09-13 23:56:45 by jmb]John Mark Bell2004-09-131-1/+1
| | | | | | Fixup to handle changed option variable name svn path=/import/netsurf/; revision=1275
* [project @ 2004-08-15 19:06:23 by jmb]John Mark Bell2004-08-151-1/+1
| | | | | | | | | Rationalise image redraw. Supply background colour when redrawing contents Reenable printing of background images Require Tinct 0.07 svn path=/import/netsurf/; revision=1234
* [project @ 2004-08-13 00:55:59 by jmb]John Mark Bell2004-08-131-1206/+1083
| | | | | | | | Rewrite of plugin handling. This is now much nicer than before although it has about the same amount of functionality. Note: This is now configurable via an option (defaults to OFF) This has only really been tested with the Flash plugin and seems to work reasonably. svn path=/import/netsurf/; revision=1216
* [project @ 2004-08-11 22:08:25 by bursa]James Bursa2004-08-111-6/+28
| | | | | | Remove content_add_instance(), content_remove_instance(), content_reshape_instance(). Add content_open(), content_close(). Implement for CONTENT_HTML. svn path=/import/netsurf/; revision=1213
* [project @ 2004-08-11 16:38:04 by jmb]John Mark Bell2004-08-111-1/+2
| | | | | | Add gui and plugin sources missed from previous checkin svn path=/import/netsurf/; revision=1210
* [project @ 2004-06-10 22:39:56 by jmb]John Mark Bell2004-06-101-20/+37
| | | | | | Compiler warning purge svn path=/import/netsurf/; revision=954
* [project @ 2004-05-05 16:33:15 by bursa]James Bursa2004-05-051-1/+2
| | | | | | Fix some compiler warnings. Ignore size attribute for file inputs. svn path=/import/netsurf/; revision=828
* [project @ 2004-05-04 22:21:37 by rjw]Richard Wilson2004-05-041-1/+1
| | | | | | Revised GUI. svn path=/import/netsurf/; revision=823