Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 418E91851D for ; Tue, 17 Nov 2015 01:49:11 +0000 (UTC) Received: (qmail 33682 invoked by uid 500); 17 Nov 2015 01:49:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33643 invoked by uid 500); 17 Nov 2015 01:49:11 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 33622 invoked by uid 99); 17 Nov 2015 01:49:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 01:49:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F204E2C1F63 for ; Tue, 17 Nov 2015 01:49:10 +0000 (UTC) Date: Tue, 17 Nov 2015 01:49:10 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9167) Crash when closing InAppBrowser on iOS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15007796#comment-15007796 ] ASF subversion and git services commented on CB-9167: ----------------------------------------------------- Commit 2279aee4ff4e7c363392dc9de4af278f96c2dca7 in cordova-plugin-inappbrowser's branch refs/heads/master from [~thejeed] [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-inappbrowser.git;h=2279aee ] Fix crash on browser window close (https://issues.apache.org/jira/browse/CB-9167) > Crash when closing InAppBrowser on iOS > -------------------------------------- > > Key: CB-9167 > URL: https://issues.apache.org/jira/browse/CB-9167 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser > Reporter: Alfred Olsson > Labels: Triaged, iOS > > Closing the InAppBrowsers sometimes causes a crash on iOS. > I think the problem is with the UIWebView delegate. > Apple documentation states that the delegate should be set to nil before release but it is not done. > See: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebViewDelegate_Protocol/ > The following code in CDVInAppBrowserViewController seems to solve the problem: > -(void)dealloc > { > self.webView.delegate = nil; > } > The crashes are seen in an App that closes the IAB at 'loadstart'. > I think this is required to get the crashes that occur around 1/10 times. > The following error is seen at crashes when Zombie Objects are enabled: > *** -[CDVWebViewDelegate respondsToSelector:]: message sent to deallocated instance 0x171846e70 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org