Changeset 1911

Show
Ignore:
Timestamp:
08/23/02 14:25:20 (6 years ago)
Author:
darin
Message:

WebKit:

  • WebView.subproj/WebFrame.m: (-reset): Remove unneeded call to _reset.
  • WebView.subproj/WebFramePrivate.m: (-_setDataSource:): Add code that removes the KHTML stuff from the frame when switching to another type of view. It would be better to do this at some other level, but without this code, we end up leaving the entire KHTMLView behind when we switch to a non-HTML page.

WebBrowser:

Debugging tool to make it easy to reproduce problems like 3021018, where
a page transition happens while you are holding a menu down.

  • Debug/DebugUtilities.m: (-createDebugMenu): Add "Go to about:blank Soon menu item". (-goToAboutBlankSoon:): Implementation.
Location:
trunk/WebKit
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r1902 r1911  
     12002-08-23  Darin Adler  <darin@apple.com> 
     2 
     3        * WebView.subproj/WebFrame.m: (-[WebFrame reset]): Remove unneeded call to _reset. 
     4 
     5        * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setDataSource:]): Add code that 
     6        removes the KHTML stuff from the frame when switching to another type of view. 
     7        It would be better to do this at some other level, but without this code, we end 
     8        up leaving the entire KHTMLView behind when we switch to a non-HTML page. 
     9 
    1102002-08-22  Richard Williamson (Local)  <rjw@apple.com> 
    211 
  • trunk/WebKit/ChangeLog-2002-12-03

    r1902 r1911  
     12002-08-23  Darin Adler  <darin@apple.com> 
     2 
     3        * WebView.subproj/WebFrame.m: (-[WebFrame reset]): Remove unneeded call to _reset. 
     4 
     5        * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setDataSource:]): Add code that 
     6        removes the KHTML stuff from the frame when switching to another type of view. 
     7        It would be better to do this at some other level, but without this code, we end 
     8        up leaving the entire KHTMLView behind when we switch to a non-HTML page. 
     9 
    1102002-08-22  Richard Williamson (Local)  <rjw@apple.com> 
    211 
  • trunk/WebKit/WebView.subproj/WebFrame.m

    r1880 r1911  
    218218{ 
    219219    [_private setDataSource: nil]; 
    220     if ([[self webView] isDocumentHTML]) { 
    221         WebHTMLView *htmlView = (WebHTMLView *)[[self webView] documentView]; 
    222         [htmlView _reset]; 
    223     } 
    224220    [_private setWebView: nil]; 
    225221     
  • trunk/WebKit/WebView.subproj/WebFramePrivate.m

    r1882 r1911  
    129129- (void)_setDataSource: (WebDataSource *)ds 
    130130{ 
     131    if ([_private->dataSource isDocumentHTML] && ![ds isDocumentHTML]) { 
     132        [[self _bridge] removeFromFrame]; 
     133    } 
     134 
    131135    [_private setDataSource: ds]; 
    132136    [ds _setController: [self controller]]; 
     
    409413 
    410414                if ([ds isDocumentHTML]) { 
    411                     [[ds _bridge] end]; 
     415                    [[self _bridge] end]; 
    412416                } 
    413417