Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8002

Creating a new div for every Js -> Native exec() call

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.8.0
    • Component/s: cordova-ios
    • Labels:
    • Environment:

      Tested on multiple iOS 8.1 devices, simulators

      Description

      Since the 3.7.0 update, when cordova does a Js to Native call using exec(), somehow the underlying cordova.js is creating a "gap://ready" iframe on every call. This means that if you made 1000 native calls you'll have 1000 divs on the DOM.
      I believe this issue is of critical priority as it incurs a huge memory leak.

      Screenshot from safari inspector
      https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agrieve Andrew Grieve
                Reporter:
                serdaronal Serdar Onal
              • Votes:
                3 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: