Commit 960f8f20 authored by darin's avatar darin

* WebView.subproj/WebFramePrivate.m:

        (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
	Give the listener a slightly longer lifetime, to make this API a bit more foolproof.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 56fdc7dc
2002-11-15 Darin Adler <darin@apple.com>
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
Give the listener a slightly longer lifetime, to make this API a bit more foolproof.
2002-11-15 Maciej Stachowiak <mjs@apple.com>
Fix world leak I introduced, and also add an early return when needed.
......
2002-11-15 Darin Adler <darin@apple.com>
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
Give the listener a slightly longer lifetime, to make this API a bit more foolproof.
2002-11-15 Maciej Stachowiak <mjs@apple.com>
Fix world leak I introduced, and also add an early return when needed.
......
......@@ -958,15 +958,20 @@ - (void)_checkNavigationPolicyForRequest:(WebResourceRequest *)request dataSourc
[dataSource _setLastCheckedRequest:request];
WebPolicyDecisionListener *listener = [[WebPolicyDecisionListener alloc]
_initWithTarget:self action:@selector(_continueAfterNavigationPolicy:)];
_private->policyRequest = [request retain];
_private->policyTarget = [target retain];
_private->policySelector = selector;
_private->listener = [[WebPolicyDecisionListener alloc] _initWithTarget:self action:@selector(_continueAfterNavigationPolicy:)];
_private->listener = [listener retain];
[[[self controller] policyDelegate] decideNavigationPolicyForAction:action
andRequest:request
inFrame:self
decisionListener:_private->listener];
decisionListener:listener];
[listener release];
}
-(void)_continueAfterNavigationPolicy:(WebPolicyAction)policy
......
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