summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-11-30 14:46:16 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-11-30 14:46:16 +0000
commit0840613ac2cbc6058d4704a69e1b77ffbe209455 (patch)
tree645937f56e3d8f3cd539c525decec5c704868763
parentea142abdd090a46ba4589a4db784c49820bbbd69 (diff)
downloadnetsurf-0840613ac2cbc6058d4704a69e1b77ffbe209455.tar.gz
netsurf-0840613ac2cbc6058d4704a69e1b77ffbe209455.tar.bz2
browser_window: Set referer and flags in ssl error pathway
To make the SSL error pathway consistent with the other error pathways, set the referer and the fetch parameter flags the same as the others. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--desktop/browser_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index 1e776c141..28647a44a 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -1135,6 +1135,8 @@ browser_window__handle_bad_certs(struct browser_window *bw,
memset(&params, 0, sizeof(params));
params.url = nsurl_ref(corestring_nsurl_about_query_ssl);
+ params.referrer = nsurl_ref(url);
+ params.flags = BW_NAVIGATE_HISTORY | BW_NAVIGATE_NO_TERMINAL_HISTORY_UPDATE | BW_NAVIGATE_INTERNAL;
err = fetch_multipart_data_new_kv(&params.post_multipart,
"siteurl",