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>
This commit is contained in:
Daniel Silverstone 2019-11-30 14:46:16 +00:00
parent ea142abdd0
commit 0840613ac2
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
1 changed files with 2 additions and 0 deletions

View File

@ -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",