logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: 01237f5229147431a26c86675657e2fe588928fb
parent 4df40cf5a802aca6f986c3669212b3c6b072ba5b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  9 Apr 2021 04:13:41 +0200

Fix formatting

Diffstat:

Mbadwolf.c10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -668,7 +668,8 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b browser->statuslabel = gtk_label_new(NULL); gtk_widget_set_name(browser->statuslabel, "browser__statuslabel"); - if(old_browser == NULL) { + if(old_browser == NULL) + { WebKitWebsiteDataManager *website_data_manager = webkit_website_data_manager_new_ephemeral(); webkit_website_data_manager_set_itp_enabled(website_data_manager, TRUE); @@ -678,7 +679,9 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b webkit_web_context_set_process_model(web_context, WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES); webkit_web_context_set_web_extensions_directory(web_context, web_extensions_directory); - } else { + } + else + { web_context = webkit_web_view_get_context(old_browser->webView); } @@ -709,7 +712,8 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b settings, NULL)); gtk_widget_set_name(GTK_WIDGET(browser->webView), "browser__webView"); - if(old_browser == NULL) { + if(old_browser == NULL) + { g_object_unref(web_context); } g_object_unref(settings);