Changeset 30119 in webkit


Ignore:
Timestamp:
Feb 9, 2008 11:00:06 PM (16 years ago)
Author:
Darin Adler
Message:

Reviewed by Tim Hatcher.

  • fix <rdar://problem/5725996> crash every time you open the Xcode documentation window
  • WebView/WebView.mm: (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Work around a bug in the garbage collector's Objective C++ support by not initializing a static to an object that needs to be marked when running under GC.
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r30020 r30119  
     12008-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
    1122008-02-05  Dan Bernstein  <mitz@apple.com>
    213
  • trunk/WebKit/mac/WebView/WebView.mm

    r30020 r30119  
    41044104- (NSString *)_userAgentWithApplicationName:(NSString *)applicationName andWebKitVersion:(NSString *)version
    41054105{
    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();
    41074111    NSString *language = [NSUserDefaults _webkit_preferredLanguageCode];
    41084112    if ([applicationName length])
Note: See TracChangeset for help on using the changeset viewer.