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



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

    Revert "user-agent: restore application branding"
    
    This reverts commit 2f87340f2e02e26fe05a5b1441cc6e65f0b5bd75

 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]