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

Expand InAppBrowser scheme to match those of File plugin

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated: