Commit a7881fc9 authored by mjs's avatar mjs

Reviewed by Darin.

	- fixed 3143418 - controller assert in WebStandardPanels _didStartLoadingURL
	- fixed 3141212 - crash in kjs garbage collection (contextimp mark)

        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge startLoadingResource:withURL:]): If the data source
	doesn't have a controller, then block the load.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2c65ac11
2003-01-15 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
- fixed 3143418 - controller assert in WebStandardPanels _didStartLoadingURL
- fixed 3141212 - crash in kjs garbage collection (contextimp mark)
* WebCoreSupport.subproj/WebBridge.m:
(-[WebBridge startLoadingResource:withURL:]): If the data source
doesn't have a controller, then block the load.
2003-01-15 Darin Adler <darin@apple.com>
Reviewed by Ken.
......
......@@ -204,6 +204,12 @@ - (void)receivedData:(NSData *)data withDataSource:(WebDataSource *)withDataSour
- (id <WebCoreResourceHandle>)startLoadingResource:(id <WebCoreResourceLoader>)resourceLoader withURL:(NSString *)URL
{
// If we are no longer attached to a controller, this must be an attempted load from an
// onUnload handler, so let's just block it.
if ([[self dataSource] controller] == nil) {
return nil;
}
return [WebSubresourceClient startLoadingResource:resourceLoader
withURL:[NSURL _web_URLWithString:URL]
referrer:[self referrer]
......
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