Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26866

iOS: removeEventListener on local webview produces an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.0
    • Fix Version/s: Release 8.0.0
    • Component/s: iOS
    • Environment:

      iOS SDK 12
      Titanium SDK 8.0.0.v20190219113758

      Description

      I'm trying to delete an event created within a webview, via an app event.
      This produces an error :

       [ERROR] Error firing event 'app:deleteWebviewEvents': A JavaScript exception occurred 

      • The problem is present with the Titanium SDK 8.0.0.v20190219113758.
      • The problem is not present with the Titanium SDK 7.5.1GA.

      the error does not allow the removal of the event "clickFromApp", in fact, by pressing the "app --> webview" button again, the event is called again.

      Steps to reproduce:

      • Create a Classic "Default Project" app
      • Replace the "app.js" code with the attached "app.js", and insert into the project also the file webview.html attached.
      • Build with Titanium 8.0.0.v20190219113758 and run on iOS.
      • Test the logic: press "app --> webview" button, press "webview -> app" button, clear the event of the webview with the button "clear events".
      • This produces the error "[ERROR] Error firing event 'app:deleteWebviewEvents': A JavaScript exception occurred "
      • Retry with SDK 7.5.1GA, in this case there are no problems. The event is deleted, and the button "app --> webview" it doesn't call anything anymore.

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              nicolomonili nicolomonili
              Reviewer:
              Jan Vennemann
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-21067
                  Sync status:
                  PENDING
                  Last received:
                  Last sent:

                  Git Source Code