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

Blob schemes won't load in iframes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.0
    • None
    • cordova-ios

    Description

      Blob schemes won't load in iframes, even though blob:* is whitelisted.

      This is needed for special cases, like when using an epub reader (ePub.js), that downloads an epub, extracts it to a blob and displays it in an iframe.

      This currently works perfectly in cordova-android, but not in cordova-ios.

      I've debugged why it happens... the Whitelists says the scheme is allowed and the URL is allowed, but then

      [NSURLConnection canHandleRequest]
      

      returns false, thus cancelling the request. Hardcoding "blob" as an allowed scheme (like it's currently done with mailto, tel and sms) fixes this issue. I was about to put a pull request in github when I saw your contributing guidelines.

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            voliva VĂ­ctor Oliva Vidal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: