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

Expand InAppBrowser scheme to match those of File plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Per http://cordova.apache.org/news/2014/02/10/plugins-release.html, the File plugin changed the way it deals with Entry scheme handling, and allows for additional filesystem abstraction.

      Prior to this update, handling local "content://" type URLs returned from the Camera plugin API, had to be translated to a "file:///" type URL by using the File plugin's window.resolveLocalFileSystemURI() method. But now that "content://" is a valid file entry scheme, and is understood by DOM methods, etc, window.resolveLocalFileSystemURL() returns the same "content://" URL format, with no way to translate that to a corresponding local "file:///" form.

      Passing a URL with "content://" to the InAppBrowser plugin on Android automatically converts it to something like "http://content://..." making it unable to load such local content directly.

      It would be beneficial for InAppBrowser's support to match the File plugin's supported schemes, beyond the currently supported "file:///" and "http(s)://" schemes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamespwhite James White
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: