Changeset 15110

Show
Ignore:
Timestamp:
06/30/06 11:56:59 (4 years ago)
Author:
thatcher
Message:

Reviewed by Darin.

Only enable shouldCloseWithWindow when ObjC GC is enabled.
This maintains backwards compatibility with applications
that expect a WebView to be usable after the window closes.

  • WebView/WebView.m: (-[WebViewPrivate init]):
Location:
trunk/WebKit
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r15108 r15110  
     12006-06-30  Timothy Hatcher  <timothy@apple.com> 
     2 
     3        Reviewed by Darin. 
     4 
     5        Only enable shouldCloseWithWindow when ObjC GC is enabled. 
     6        This maintains backwards compatibility with applications 
     7        that expect a WebView to be usable after the window closes. 
     8 
     9        * WebView/WebView.m: 
     10        (-[WebViewPrivate init]): 
     11 
    1122006-06-30  Timothy Hatcher  <timothy@apple.com> 
    213 
  • trunk/WebKit/WebView/WebView.m

    r15108 r15110  
    379379    dashboardBehaviorAllowWheelScrolling = YES; 
    380380    tabKeyCyclesThroughElements = YES; 
    381     shouldCloseWithWindow = YES; 
     381    shouldCloseWithWindow = objc_collecting_enabled(); 
    382382 
    383383    return self;