Commit f491b7c3 authored by darin's avatar darin
Browse files

Reviewed by Don.

        * WebView.subproj/WebController.m: (-[WebController userAgentForURL:]):
	Add "(like Gecko)" string and change "WebKit" to "AppleWebKit".

        * English.lproj/StringsNotToBeLocalized.txt: Update for these changes.
        * Misc.subproj/WebUnicode.h: No need for & 0xFF since we cast to unsigned char.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4bbddd4f
2002-12-13 Darin Adler <darin@apple.com>
Reviewed by Don.
* WebView.subproj/WebController.m: (-[WebController userAgentForURL:]):
Add "(like Gecko)" string and change "WebKit" to "AppleWebKit".
* English.lproj/StringsNotToBeLocalized.txt: Update for these changes.
* Misc.subproj/WebUnicode.h: No need for & 0xFF since we cast to unsigned char.
2002-12-13 John Sullivan <sullivan@apple.com>
- WebKit part of fix for 3028061 -- visiting a bookmarked site
......
......@@ -70,8 +70,8 @@
"Library/Internet Plug-Ins"
"Library/Preferences/Explorer/Favorites.html"
"Lucida Grande"
"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@ %@"
"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@"
"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko) %@"
"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko)"
"NETSCAPE2"
"NP_GetEntryPoints"
"NP_Initialize"
......
......@@ -25,8 +25,8 @@ extern UniChar *shapedString(UniChar *uc, int stringLength, int from, int len, i
}
#endif
#define WK_CELL(ucs) ((unsigned char) ucs & 0xff)
#define WK_ROW(ucs) ((unsigned char) (ucs>>8)&0xff)
#define WK_CELL(ucs) ((unsigned char)(ucs))
#define WK_ROW(ucs) ((unsigned char)(ucs>>8))
// surrogate ranges
enum {
......
......@@ -375,10 +375,10 @@ - (NSString *)userAgentForURL:(NSURL *)URL
NSString *userAgent;
if ([applicationName length]) {
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@ %@",
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko) %@",
language, sourceVersion, applicationName];
} else {
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@",
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko)",
language, sourceVersion];
}
......
......@@ -375,10 +375,10 @@ - (NSString *)userAgentForURL:(NSURL *)URL
NSString *userAgent;
if ([applicationName length]) {
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@ %@",
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko) %@",
language, sourceVersion, applicationName];
} else {
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) WebKit/%@",
userAgent = [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U; PPC; %@) AppleWebKit/%@ (like Gecko)",
language, sourceVersion];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment