[gnome-online-accounts] webview: Remove trademarks from user-agent and mention GNOME



commit 5bc28897c49c899085ed680aa2af56e47d15bc79
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jun 4 22:49:42 2012 +0200

    webview: Remove trademarks from user-agent and mention GNOME

 src/goabackend/goawebview.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index 9349789..56efc2c 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -296,16 +296,21 @@ goa_web_view_fake_mobile (GoaWebView *self)
 
   settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (self->priv->web_view));
 
-  /* Fake a HTC Wildfire. Some providers, like Google, refuse
-   * to provide the mobile version of their authentication pages
-   * otherwise. eg., in Google's case, passing btmpl=mobile does
-   * not help.
+  /* This is based on the HTC Wildfire's user agent. Some
+   * providers, like Google, refuse to provide the mobile
+   * version of their authentication pages otherwise. eg.,
+   * in Google's case, passing btmpl=mobile does not help.
+   *
+   * The actual user agent used by a HTC Wildfire is:
+   * Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; HTC Wildfire
+   * Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0
+   * Mobile Safari/533.1
    *
    * Also note that the user agents of some mobile browsers may
    * not work. eg., Nokia N9.
    */
   g_object_set (G_OBJECT (settings),
-                "user-agent", "Mozilla/5.0 (Linux; U; Android 2.2.1; HTC Wildfire Build/FRG83D) "
-                              "AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
+                "user-agent", "Mozilla/5.0 (GNOME; not Android) "
+                              "AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile",
                 NULL);
 }



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