[ 
https://issues.apache.org/jira/browse/CB-9558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14804572#comment-14804572
 ] 

ASF subversion and git services commented on CB-9558:
-----------------------------------------------------

Commit cbe21f88571b674f23aea2a894363be101a10276 in cordova-ios's branch 
refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=cbe21f8 ]

CB-9558 - Add blob: to allowedSchemes used by 
CDVUIWebViewDelegate::shouldLoadRequest (closes #163)

- defaultResourcePolicyForURL returns YES for blob:
- add blob:tests


> Blob schemes won't load in iframes
> ----------------------------------
>
>                 Key: CB-9558
>                 URL: https://issues.apache.org/jira/browse/CB-9558
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.9.0
>            Reporter: VĂ­ctor Oliva Vidal
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>              Labels: cordova-ios-4.0.x
>
> 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|https://github.com/futurepress/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
> {code}
> [NSURLConnection canHandleRequest]
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to