cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Crossley (JIRA)" <>
Subject [jira] [Created] (CB-7693) Auto detaching handlers for commands
Date Thu, 02 Oct 2014 09:26:34 GMT
Lee Crossley created CB-7693:

             Summary: Auto detaching handlers for commands
                 Key: CB-7693
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugins, WP8
    Affects Versions: 3.6.3
            Reporter: Lee Crossley
            Assignee: Jesse MacFadyen

The `webBrowser_Unloaded` method which detaches event handlers of plugin commands (to prevent
memory leak on page navigation) clears ALL plugin callbacks (aka ResultHandlers).

If you have a plugin that performs navigation, the callback is lost, which will result in
a "Failed to locate callback for id" error.

I'm unable to see a workaround for this without modifying the BaseCommand or NativeExecution.

This message was sent by Atlassian JIRA

View raw message