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

ASF GitHub Bot commented on CB-9558:
------------------------------------

GitHub user purplecabbage opened a pull request:

    https://github.com/apache/cordova-ios/pull/163

    CB-9558 Blob schemes won't load in iframes

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/purplecabbage/cordova-ios CB-9558

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-ios/pull/163.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #163
    
----
commit f2eada96ecedecb74aa0612ddef1ec5aac2db625
Author: voliva <[email protected]>
Date:   2015-08-26T13:40:39Z

    Blob schemes won't load in iframes

commit 2cd85f37b86aa278cb1d828bbfb47bbd144e7813
Author: Jesse MacFadyen <[email protected]>
Date:   2015-09-14T23:56:01Z

    add blob: to allowedSchemes used by CDVUIWebViewDelegate::shouldLoadRequest

commit 64ea7641934ce6e3a423bcda425efe7c2d65d29c
Author: Jesse MacFadyen <[email protected]>
Date:   2015-09-15T00:11:22Z

    defaultResourcePolicyForURL returns YES for blob:

commit e09407501596fc61519d476f4f04aeb2cc5159d2
Author: Jesse MacFadyen <[email protected]>
Date:   2015-09-15T00:33:35Z

    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