path: root/desktop/browser.h
diff options
authorJohn Mark Bell <>2004-10-01 21:31:55 +0000
committerJohn Mark Bell <>2004-10-01 21:31:55 +0000
commit49ce807e3cebf9f36fc908d7b7c0bfe00ce32e2c (patch)
treef3750ef9047ff8493715e10e2b84e292c1b56fe1 /desktop/browser.h
parent39ad1632eb78e8c632d3e66711d09f2bb982a4e8 (diff)
[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 (ie the login details embedded in the referer - not good). svn path=/import/netsurf/; revision=1297
Diffstat (limited to 'desktop/browser.h')
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index 7978060ef..8bdcf9b25 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -70,13 +70,14 @@ typedef enum {
} browser_mouse_click;
-void browser_window_create(const char *url, struct browser_window *clone);
+void browser_window_create(const char *url, struct browser_window *clone,
+ char *referer);
void browser_window_go(struct browser_window *bw, const char *url,
- bool referer);
+ char *referer);
void browser_window_go_post(struct browser_window *bw, const char *url,
char *post_urlenc,
struct form_successful_control *post_multipart,
- bool history_add, bool referer);
+ bool history_add, char *referer);
void browser_window_stop(struct browser_window *bw);
void browser_window_reload(struct browser_window *bw, bool all);
void browser_window_destroy(struct browser_window *bw);