Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7747 Extract whitelist functionality into a plugin
  3. CB-7912

Update FileTransfer plugin to handle whitelist plugins

    XMLWordPrintableJSON

Details

    Description

      The Android code in FileTransfer which determines whether a file should be downloaded from the network relies on the removed CordovaWebview.getWhiteList method.
      In order to maintain compatibility with both 3.x and 4.x branches, some reflection is required. The WebView class is not guaranteed to use a Whitelist object, and so we shouldn't be looking for one specifically. There is a new method, "shouldAllowRequest", which should be used instead.

      Attachments

        Activity

          People

            iclelland Ian Clelland
            iclelland Ian Clelland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: