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

Android: WebView.stopLoading() is not functional when triggered by events

    Details

    • Story Points:
      5
    • Sprint:
      2019 Sprint 17, 2019 Sprint 18, 2019 Sprint 19, 2019 Sprint 20

      Description

      Titanium.WebView.stopLoading() has no effect when called from events.

      TEST CASE

      const win = Ti.UI.createWindow();
      const webView = Ti.UI.createWebView({ url: 'https://google.com/' });
       
      // prevent page from loading.
      webView.addEventListener('beforeload', e => {
          webView.stopLoading();
      });
       
      win.add(webView);
      win.open();
      

      EXPECTED

      • Page is prevented from load, displaying a blank screen.

      ACTUAL

      • Page loads.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Joshua Quick
              Tester:
              Satyam Sekhri
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code