[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:01:15 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 960f8f2042e362d751188bc352a5c4f736668905
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Nov 15 17:59:06 2002 +0000

            * 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

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index afb22a9..d167bc5 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-15  Darin Adler  <darin at 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 at apple.com>
 
 	Fix world leak I introduced, and also add an early return when needed.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index afb22a9..d167bc5 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,9 @@
+2002-11-15  Darin Adler  <darin at 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 at apple.com>
 
 	Fix world leak I introduced, and also add an early return when needed.
diff --git a/WebKit/WebView.subproj/WebFramePrivate.m b/WebKit/WebView.subproj/WebFramePrivate.m
index 952b255..0ffe96f 100644
--- a/WebKit/WebView.subproj/WebFramePrivate.m
+++ b/WebKit/WebView.subproj/WebFramePrivate.m
@@ -958,15 +958,20 @@ static const char * const stateNames[] = {
 
     [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

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list