<rdar://problem/5647261> Remove user agent string hack for yahoo.com
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Dec 2007 02:15:06 +0000 (02:15 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Dec 2007 02:15:06 +0000 (02:15 +0000)
        Reviewed by Darin.

        * WebView/WebView.mm:
        (-[WebView _userAgentForURL:]): Removed hack.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28734 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/WebView/WebView.mm

index 299fbe4cbc133b20b82cd66590ce27b73cda8b4d..657d000241b444b76b62cc42d222a584c548a39f 100644 (file)
@@ -1,3 +1,12 @@
+2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
+
+        <rdar://problem/5647261> Remove user agent string hack for yahoo.com
+
+        Reviewed by Darin.
+
+        * WebView/WebView.mm:
+        (-[WebView _userAgentForURL:]): Removed hack.
+
 2007-12-14  Darin Adler  <darin@apple.com>
 
         Reviewed by Brady.
index e5bc39eba701493fcf1ac6e2317e1c3f1e217916..8153900cf39dd1183b474b29c42e56822c55be12 100644 (file)
@@ -4119,12 +4119,6 @@ static NSString *createMacOSXVersionString()
 - (WebCore::String)_userAgentForURL:(const WebCore::KURL&)url
 {
     if (_private->useSiteSpecificSpoofing) {
-        // FIXME: Remove yahoo.com once <rdar://problem/4549681> is fixed.
-        if (url.host().endsWith("yahoo.com")) {
-            static String yahooUserAgent([self _userAgentWithApplicationName:_private->applicationNameForUserAgent andWebKitVersion:@"422"]);
-            return yahooUserAgent;
-        }
-        
         // FIXME: Remove flickr.com workaround once <rdar://problem/5081617> is fixed
         if (url.host().endsWith("flickr.com")) {
             // Safari 2.0.4's user agent string works here