summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-23 21:06:40 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-23 21:18:47 +0100
commit8e0469d41db6b53f75c509d364cf25f3c0abc71a (patch)
treefed9125c378fba23951f189c2b701800bde8b11a /frontends
parent82dc6ec097405dbbc179b0ea2b3ff99f980ed107 (diff)
downloadnetsurf-8e0469d41db6b53f75c509d364cf25f3c0abc71a.tar.gz
netsurf-8e0469d41db6b53f75c509d364cf25f3c0abc71a.tar.bz2
monkey: Support present_cookies
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends')
-rw-r--r--frontends/monkey/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index 6ff480cbc..bae815056 100644
--- a/frontends/monkey/main.c
+++ b/frontends/monkey/main.c
@@ -206,6 +206,16 @@ static nserror gui_launch_url(struct nsurl *url)
return NSERROR_OK;
}
+static nserror gui_present_cookies(const char *search_term)
+{
+ if (search_term != NULL) {
+ moutf(MOUT_GENERIC, "PRESENT_COOKIES %s", search_term);
+ } else {
+ moutf(MOUT_GENERIC, "PRESENT_COOKIES");
+ }
+ return NSERROR_OK;
+}
+
static void quit_handler(int argc, char **argv)
{
monkey_done = true;
@@ -250,6 +260,7 @@ static struct gui_misc_table monkey_misc_table = {
.quit = monkey_quit,
.launch_url = gui_launch_url,
.login = gui_401login_open,
+ .present_cookies = gui_present_cookies,
};
static void monkey_run(void)