Commit Graph

82 Commits

Author SHA1 Message Date
Daniel Silverstone
8e0469d41d
monkey: Support present_cookies
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 21:18:47 +01:00
Daniel Silverstone
e6c666d4f4
chore: Perform sslcert_viewer-ectomy
This removes the sslcert_viewer entirely from the code. Where
possible I've also trimmed out of frontends any code I think
should not be present.

Frontends should check and remove any further references that I
have failed to catch.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 09:01:39 +01:00
Daniel Silverstone
309fcd6d42
monkey: Catch some signals and backtrace
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-04-25 21:04:41 +01:00
Daniel Silverstone
d3a80a9aae
Monkey: Clean up on completion of downloads
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 13:08:36 +00:00
Daniel Silverstone
0b4d1fbb1b
monkey: Enable disc cache optionally on monkey
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:11 +00:00
Vincent Sanders
7039973a1f fix frontends to cope with certificate chain update 2020-02-23 17:19:45 +00:00
Vincent Sanders
d71d2632b4 limit monkey backtrace generation to libc where it is available 2020-01-11 10:23:14 +00:00
Daniel Silverstone
ccffb95f03
monkey: On assert failure, print a backtrace
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-01-10 21:53:30 +00:00
Vincent Sanders
3fdbef0566 remove unused render_resample option from beos, gtk and monkey frontends 2019-12-21 20:52:22 +00:00
Vincent Sanders
918b1d0fed remove long unused plugin option from gtk and monkey 2019-12-17 22:09:41 +00:00
Daniel Silverstone
5063fc838e
monkey: Support reporting page info state
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-12-01 17:05:28 +00:00
Vincent Sanders
dae0ff3d26 remove warning callback from miscelaneous function table 2019-11-11 16:59:28 +00:00
Daniel Silverstone
8b0aec4bac Monkey: Clean up various leaked blocks
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-09-07 15:24:37 +01:00
Vincent Sanders
4dc4d8b318 add miscellaneous event to browser window callback table
extend the browser window callback table with a miscallaneous event
 entry. This is used to replace all browser window callbacks which
 take no parameters.

This reduces the API surface from seven separate calls to a single
 call with an enumeration which may be readily extended.

The initial implementation in the frontends simply calls the original
 implementations to reduce scope for errors.
2019-08-20 00:16:52 +01:00
Daniel Silverstone
8469f4cc8e Reimplement handling of BAD_AUTH inside browser_window
We now handle authentication requests via an `about:` page
which presents a nice form built into the browser window.
In order to do this, we add internal navigation as a concept
to the browser window and we strip the 401login support from all
frontends except monkey.

The 401login callback is now intended for password safe type support
rather than an immediately interactive prompt.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-06 11:26:47 +01:00
Daniel Silverstone
69d1d5f626 monkey: Support clicking in windows
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-03 12:31:02 +01:00
Daniel Silverstone
f7d97d6483 monkey: Report the errno when select() returns -1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 16:57:38 +01:00
Daniel Silverstone
6a9137f431 monkey: Run scheduler before extracting fdsets
We need to run the scheduler *before* we extract the fdsets from
the fetchers, otherwise fetch aborts might result in EBADF

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 16:56:54 +01:00
Vincent Sanders
552aab42e1 remove scaled parameter from get_dimensions 2019-08-02 12:26:20 +01:00
brabo
ba9f5f8ef0 gtk/fetch.c & monkey/filetype.c: ascii_is_space already checks for newline. 2019-08-01 10:42:08 +01:00
brabo
c90bfb23ad gtk/fetch.c & monkey/filetype.c: small comment correction. 2019-08-01 10:42:08 +01:00
Daniel Silverstone
6c951f7a15 monkey/browser.c: Handle failed calloc more gracefully
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-01 09:23:58 +01:00
Michael Forney
6a53b447e5 Declare global variables as extern in headers
Otherwise, each source file that includes the header will create a
new definition, which are usually merged together by the linker.

Multiple definitions of an object is not allowed in ISO C.
2019-06-30 09:52:06 +01:00
Vincent Sanders
dddc5eac94 Update schedulers return codes
The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND
 when a caller is using a negative schedule time to remove a callback.
2019-06-08 13:33:16 +01:00
Vincent Sanders
eeeca4b712 add ability to stop a navigation in monkey frontend 2019-06-06 17:17:27 +01:00
Daniel Silverstone
6fdc692aa5 Support DEBUG log level in console_log
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:16:48 +01:00
Daniel Silverstone
2b8531ff49 Monkey: Support console_log
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:04:48 +01:00
Daniel Silverstone
689458aa6e Monkey: Support WINDOW EXEC WIN n cmd...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Michael Drake
cfb6c461fc monkey: Add bmp and ico to mime_hash. 2019-02-16 16:08:17 +00:00
Daniel Silverstone
2e50e1ea71 Fix text plotter in monkey 2019-02-16 10:21:06 +00:00
Vincent Sanders
a2ffbdfd1c add certificate window handling 2018-11-04 11:20:40 +00:00
Daniel Silverstone
46b6b7c9b4 Final tweaks, support LOGIN in monkeyfarmer 2018-11-04 10:35:22 +00:00
Daniel Silverstone
fa8dfa28d1 Update monkey 401login a little to be easier to work with 2018-11-04 10:11:13 +00:00
Vincent Sanders
f12dee199c add 401 login handling to monkey frontend 2018-11-03 17:33:42 +00:00
Michael Drake
97cbc18021 Monkey: Buildsystem: Set messages directory. 2018-11-03 17:30:49 +00:00
Daniel Silverstone
b34a52e4b9 More monkey stuff 2018-11-03 17:14:43 +00:00
Daniel Silverstone
94bba97a45 Remove redundant redraw method 2018-11-03 16:51:01 +00:00
Daniel Silverstone
6fcb0d498f Update farmer a little ready for later 2018-11-03 15:28:23 +00:00
Daniel Silverstone
77814588a8 Correct wrong MOUT_ERROR to MOUT_WINDOW 2018-11-03 15:27:58 +00:00
Vincent Sanders
6ff3238825 centralise monkey output generation 2018-11-03 15:12:50 +00:00
Daniel Silverstone
4fcb6eb301 Upgrade monkey farmer to python 3 (badly) 2018-11-03 11:42:50 +00:00
Vincent Sanders
8bca6cf28b correctly setup feature flags 2018-09-06 21:34:51 +01:00
Vincent Sanders
05b9baadbc _XOPEN_SOURCE needs defining to avoid warnings on BSD 2018-09-06 12:35:36 +01:00
Vincent Sanders
6ce6b62099 stop defining _XOPEN_SOURCE
This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
2018-09-06 11:33:02 +01:00
Michael Drake
97810d0c1a Monkey: Update for new HTTP auth API. 2018-08-15 07:29:58 +01:00
Michael Drake
8332bf6b2a Plotters: Remove width param from path plotter.
We now use the stroke_width in the plot_style.
2018-05-23 13:48:17 +01:00
Michael Drake
a58d97a41a Plotters: Add plot_style_fixed type, and use for font size. 2018-05-23 11:48:35 +01:00
Vincent Sanders
2c7d24c5bc ensure stdint is included where required 2018-04-22 14:03:18 +01:00
Daniel Silverstone
8123e65351 Finalise nslog layer properly in closedown 2017-09-10 14:22:05 +01:00
Vincent Sanders
8b88e44090 fix time_t logging 2017-09-08 20:47:22 +01:00