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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0
    • cordova-ios
    • 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

              agrieve Andrew Grieve
              serdaronal Serdar Onal
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: