[epiphany/gnome-41] Revert "user-agent: restore application branding"



commit fd9b4916bc6bc9a4a910d5d91a1243dcfb3241c5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Jun 3 14:25:35 2022 +0000

    Revert "user-agent: restore application branding"
    
    This reverts commit 210865bbf00651288b26974b724122e5e47dab0f

 lib/ephy-user-agent.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-user-agent.c b/lib/ephy-user-agent.c
index 7803ad818..52cbc8282 100644
--- a/lib/ephy-user-agent.c
+++ b/lib/ephy-user-agent.c
@@ -31,6 +31,7 @@ ephy_user_agent_get (void)
 {
   static char *user_agent = NULL;
   WebKitSettings *settings;
+  gboolean web_app;
 
   if (user_agent)
     return user_agent;
@@ -42,9 +43,12 @@ ephy_user_agent_get (void)
     g_free (user_agent);
   }
 
+  web_app = ephy_profile_dir_is_web_application ();
+
   settings = webkit_settings_new ();
-  webkit_settings_set_user_agent_with_application_details (settings, "Epiphany", "605.1.15");
-  user_agent = g_strdup (webkit_settings_get_user_agent (settings));
+  user_agent = g_strdup_printf ("%s%s",
+                                webkit_settings_get_user_agent (settings),
+                                web_app ? " (Web App)" : "");
   g_object_unref (settings);
 
   return user_agent;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]