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

Android : add mixed content control to webview

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
      None
    • Environment:
    • Story Points:
      3
    • Sprint:
      2018 Sprint 15 SDK, 2018 Sprint 16 SDK

      Description

      Android 5 (21) adds WebSettings.setMixedContentMode to control how mixed content is handled (https that contains inlined http).
      Need to add access to this.
      https://developer.android.com/reference/android/webkit/WebSettings#setMixedContentMode(int)

      Description:
      Images doesn't load in webview if they are hosted on http server!
      E.g. if you assign webview url property to https://blogs-dev.vmware.com/vov/authors/
      Some images get load properly but some which are hosted on http server or have http://xyz path they are not getting loaded.

      Test code:

      <Alloy>
      <Window class="container">
      <WebView id="label" url="https://blogs.vmware.com/vov/authors/"></WebView> 
      </Window>
      </Alloy>
      

      Error Log:

      [INFO] : I/TiWebChromeClient.console: (main) [111,16675] Mixed Content: The page at 'https://blogs.vmware.com/vov/authors/#' was loaded over HTTPS, but requested an insecure image 'http://blogs.vmware.com/vov/files/2018/02/boney-francis.jpg'. This request has been blocked; the content must be served over HTTPS. (0:https://blogs.vmware.com/vov/authors/#)
      [INFO] : I/TiWebChromeClient.console: (main) [1,16676] Mixed Content: The page at 'https://blogs.vmware.com/vov/authors/#' was loaded over HTTPS, but requested an insecure image 'http://blogs.vmware.com/vov/files/2018/03/Jerry_Griffin.png'. This request has been blocked; the content must be served over HTTPS. (0:https://blogs.vmware.com/vov/authors/#)
      [INFO] : I/TiWebChromeClient.console: (main) [0,16676] Mixed Content: The page at 'https://blogs.vmware.com/vov/authors/#' was loaded over HTTPS, but requested an insecure image 'http://blogs.vmware.com/vov/files/2017/11/Bask-Iyer-170x170.jpg'. This request has been blocked; the content must be served over HTTPS. (0:https://blogs.vmware.com/vov/authors/#)
      [INFO] : I/TiWebChromeClient.console: (main) [1,16677] Mixed Content: The page at 'https://blogs.vmware.com/vov/authors/#' was loaded over HTTPS, but requested an insecure image 'http://blogs.vmware.com/vov/files/2018/05/ankur.jpg'. This request has been blocked; the content must be served over HTTPS. (0:https://blogs.vmware.com/vov/authors/#)
      [INFO] : I/TiWebChromeClient.console: (main) [1,16678] Mixed Content: The page at 'https://blogs.vmware.com/vov/authors/#' was loaded over HTTPS, but requested an insecure image 'http://blogs.vmware.com/vov/files/2018/03/romy-kaura.png'. This request has been blocked; the content must be served over HTTPS. (0:https://blogs.vmware.com/vov/authors/#)
      

      Test Environment:

       
      Android 8.0, Android 6.0
      Operating System
        Name                        = Microsoft Windows 10 Pro
        Version                     = 10.0.16299
        Architecture                = 32bit
        # CPUs                      = 4
        Memory                      = 17091956736
      Node.js
        Node.js Version             = 8.9.1
        npm Version                 = 5.5.1
      Titanium CLI
        CLI Version                 = 5.1.0
      Titanium SDK
        SDK Version                 = 7.1.0.GA, 6.3.0.GA
      
      

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                buddyguards grebulon
                Reviewer:
                Joshua Quick
                Tester:
                Samir Mohammed
              • Watchers:
                13 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