[WebKit2] [GTK] Add API for controlling the user agent
[WebKit-https.git] / Source / WebKit2 / UIProcess / gtk / WebPageProxyGtk.cpp
index 1117a253058a2049e2741be70e1d982e35f35332..80881bfe70b9a3d10d5b42cc507185a22367e782 100644 (file)
@@ -33,6 +33,7 @@
 #include "WebKitWebViewBasePrivate.h"
 #include "WebPageMessages.h"
 #include "WebProcessProxy.h"
+#include <WebCore/UserAgentGtk.h>
 #include <gtk/gtkx.h>
 
 namespace WebKit {
@@ -44,8 +45,7 @@ GtkWidget* WebPageProxy::viewWidget()
 
 String WebPageProxy::standardUserAgent(const String& applicationNameForUserAgent)
 {
-    // FIXME: This should not be hard coded.
-    return "Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.7 (KHTML, like Gecko) Version/5.0 Safari/534.7";
+    return WebCore::standardUserAgent(applicationNameForUserAgent);
 }
 
 void WebPageProxy::getEditorCommandsForKeyEvent(const AtomicString& eventType, Vector<WTF::String>& commandsList)