Changeset 30119 in webkit
- Timestamp:
- Feb 9, 2008 11:00:06 PM (16 years ago)
- Location:
- trunk/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r30020 r30119 1 2008-02-09 Darin Adler <darin@apple.com> 2 3 Reviewed by Tim Hatcher. 4 5 - fix <rdar://problem/5725996> crash every time you open the Xcode documentation window 6 7 * WebView/WebView.mm: 8 (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Work around a bug in the 9 garbage collector's Objective C++ support by not initializing a static to an object 10 that needs to be marked when running under GC. 11 1 12 2008-02-05 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/WebKit/mac/WebView/WebView.mm
r30020 r30119 4104 4104 - (NSString *)_userAgentWithApplicationName:(NSString *)applicationName andWebKitVersion:(NSString *)version 4105 4105 { 4106 static NSString *osVersion = createMacOSXVersionString(); 4106 // Note: Do *not* move the initialization of osVersion into the declaration. 4107 // Garbage collection won't correctly mark the global variable in that case <rdar://problem/5733674>. 4108 static NSString *osVersion; 4109 if (!osVersion) 4110 version = createMacOSXVersionString(); 4107 4111 NSString *language = [NSUserDefaults _webkit_preferredLanguageCode]; 4108 4112 if ([applicationName length])
Note: See TracChangeset
for help on using the changeset viewer.