[ 
https://issues.apache.org/jira/browse/CB-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465858#comment-15465858
 ] 

ASF GitHub Bot commented on CB-3232:
------------------------------------

GitHub user lucatorella opened a pull request:

    https://github.com/apache/cordova-plugin-wkwebview-engine/pull/17

    Avoid retain cycle caused by WKUserContentController retaining its message 
handler

    ### Platforms affected
    iOS
    
    ### What does this PR do?
    This PR breaks the retain cycle caused by WKUserContentController retaining 
its message handler. This retain cycle would cause apps that create different 
CDVViewController instances to leak memory. For instance if you have a 
navigation controller, and you push a CDVViewController instance and then you 
go back, the view controller just pulled out of the stack is not deallocated.
    
    ### What testing has been done on this change?
    I tested that the message from javascript are still passed. I think it's 
enough.
    
    ### Checklist
    - [ ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and 
submitted to secret...@apache.org.
    - [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) 
in the JIRA database
    - [ ] Commit message follows the format: "CB-3232: (android) Fix bug with 
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform 
affected.
    - [ ] Added automated test coverage as appropriate for this change.
    
    …er, to break it we cannot pass directly CDVWKWebViewEngine's instance

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lucatorella/cordova-plugin-wkwebview-engine 
feature/avoid-addScriptMessageHandler-leak

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-wkwebview-engine/pull/17.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17
    
----
commit 1d135e8ffd1556dd6fee49e820fca902bfb59a6a
Author: Luca Torella <l...@scandit.com>
Date:   2016-09-05T21:53:17Z

    Avoid retain cycle: WKUserContentController retains its message handler, to 
break it we cannot pass directly CDVWKWebViewEngine's instance

----


> "cordova platform add blackberry" fails on 2.7.1-rc.1
> -----------------------------------------------------
>
>                 Key: CB-3232
>                 URL: https://issues.apache.org/jira/browse/CB-3232
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: BlackBerry, CLI
>    Affects Versions: 2.7.0
>            Reporter: Michael Brooks
>            Assignee: Michael Brooks
>             Fix For: 2.7.0
>
>
> The following error is thrown when running {{$ cordova platform add 
> blackberry}}:
> {code}
> [Error: An error occured during creation of blackberry sub-project. Creating 
> BlackBerry project...
> Updating config.xml ...
> sed: 
> /Users/mwbrooks/Dropbox/Development/sandbox/myapp/platforms/blackberry/www/config.xml:
>  No such file or directory
> Cleaning up ...
> Remember to update the project.properties file inside your application 
> directory!
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to