{"action":"opened","number":156,"pull_request":{"url":"https://api.github.com/repos/apache/cordova-ios/pulls/156","id":43405132,"html_url":"https://github.com/apache/cordova-ios/pull/156","diff_url":"https://github.com/apache/cordova-ios/pull/156.diff","patch_url":"https://github.com/apache/cordova-ios/pull/156.patch","issue_url":"https://api.github.com/repos/apache/cordova-ios/issues/156","number":156,"state":"open","locked":false,"title":"CB-9558 Blob schemes won't load in iframes","user":{"login":"voliva","id":5365487,"avatar_url":"https://avatars.githubusercontent.com/u/5365487?v=3","gravatar_id":"","url":"https://api.github.com/users/voliva","html_url":"https://github.com/voliva","followers_url":"https://api.github.com/users/voliva/followers","following_url":"https://api.github.com/users/voliva/following{/other_user}","gists_url":"https://api.github.com/users/voliva/gists{/gist_id}","starred_url":"https://api.github.com/users/voliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voliva/subscriptions","organizations_url":"https://api.github.com/users/voliva/orgs","repos_url":"https://api.github.com/users/voliva/repos","events_url":"https://api.github.com/users/voliva/events{/privacy}","received_events_url":"https://api.github.com/users/voliva/received_events","type":"User","site_admin":false},"body":"Blob schemes won't load in iframes, even though blob:* is whitelisted.\r\nThis 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.\r\nThis currently works perfectly in cordova-android, but not in cordova-ios.\r\nI've debugged why it happens... the Whitelists says the scheme is allowed and the URL is allowed, but then\r\n```Objective-C\r\n[NSURLConnection canHandleRequest]\r\n```\r\nreturns false, thus cancelling the request. Hardcoding \"blob\" as an allowed scheme (like it's currently done with mailto, tel and sms) fixes this issue.","created_at":"2015-08-26T14:02:04Z","updated_at":"2015-08-26T14:02:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c34074fa6e866d8f46ed282d5e7be75963becef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/cordova-ios/pulls/156/commits","review_comments_url":"https://api.github.com/repos/apache/cordova-ios/pulls/156/comments","review_comment_url":"https://api.github.com/repos/apache/cordova-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/cordova-ios/issues/156/comments","statuses_url":"https://api.github.com/repos/apache/cordova-ios/statuses/a8ec82bc133c51c6d30f73d4121eae5dc6366102","head":{"label":"voliva:3.9.x","ref":"3.9.x","sha":"a8ec82bc133c51c6d30f73d4121eae5dc6366102","user":{"login":"voliva","id":5365487,"avatar_url":"https://avatars.githubusercontent.com/u/5365487?v=3","gravatar_id":"","url":"https://api.github.com/users/voliva","html_url":"https://github.com/voliva","followers_url":"https://api.github.com/users/voliva/followers","following_url":"https://api.github.com/users/voliva/following{/other_user}","gists_url":"https://api.github.com/users/voliva/gists{/gist_id}","starred_url":"https://api.github.com/users/voliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voliva/subscriptions","organizations_url":"https://api.github.com/users/voliva/orgs","repos_url":"https://api.github.com/users/voliva/repos","events_url":"https://api.github.com/users/voliva/events{/privacy}","received_events_url":"https://api.github.com/users/voliva/received_events","type":"User","site_admin":false},"repo":{"id":41427412,"name":"cordova-ios","full_name":"voliva/cordova-ios","owner":{"login":"voliva","id":5365487,"avatar_url":"https://avatars.githubusercontent.com/u/5365487?v=3","gravatar_id":"","url":"https://api.github.com/users/voliva","html_url":"https://github.com/voliva","followers_url":"https://api.github.com/users/voliva/followers","following_url":"https://api.github.com/users/voliva/following{/other_user}","gists_url":"https://api.github.com/users/voliva/gists{/gist_id}","starred_url":"https://api.github.com/users/voliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voliva/subscriptions","organizations_url":"https://api.github.com/users/voliva/orgs","repos_url":"https://api.github.com/users/voliva/repos","events_url":"https://api.github.com/users/voliva/events{/privacy}","received_events_url":"https://api.github.com/users/voliva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voliva/cordova-ios","description":"Mirror of Apache Cordova iOS","fork":true,"url":"https://api.github.com/repos/voliva/cordova-ios","forks_url":"https://api.github.com/repos/voliva/cordova-ios/forks","keys_url":"https://api.github.com/repos/voliva/cordova-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voliva/cordova-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voliva/cordova-ios/teams","hooks_url":"https://api.github.com/repos/voliva/cordova-ios/hooks","issue_events_url":"https://api.github.com/repos/voliva/cordova-ios/issues/events{/number}","events_url":"https://api.github.com/repos/voliva/cordova-ios/events","assignees_url":"https://api.github.com/repos/voliva/cordova-ios/assignees{/user}","branches_url":"https://api.github.com/repos/voliva/cordova-ios/branches{/branch}","tags_url":"https://api.github.com/repos/voliva/cordova-ios/tags","blobs_url":"https://api.github.com/repos/voliva/cordova-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voliva/cordova-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voliva/cordova-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/voliva/cordova-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voliva/cordova-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/voliva/cordova-ios/languages","stargazers_url":"https://api.github.com/repos/voliva/cordova-ios/stargazers","contributors_url":"https://api.github.com/repos/voliva/cordova-ios/contributors","subscribers_url":"https://api.github.com/repos/voliva/cordova-ios/subscribers","subscription_url":"https://api.github.com/repos/voliva/cordova-ios/subscription","commits_url":"https://api.github.com/repos/voliva/cordova-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/voliva/cordova-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/voliva/cordova-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/voliva/cordova-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/voliva/cordova-ios/contents/{+path}","compare_url":"https://api.github.com/repos/voliva/cordova-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voliva/cordova-ios/merges","archive_url":"https://api.github.com/repos/voliva/cordova-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voliva/cordova-ios/downloads","issues_url":"https://api.github.com/repos/voliva/cordova-ios/issues{/number}","pulls_url":"https://api.github.com/repos/voliva/cordova-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/voliva/cordova-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/voliva/cordova-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voliva/cordova-ios/labels{/name}","releases_url":"https://api.github.com/repos/voliva/cordova-ios/releases{/id}","created_at":"2015-08-26T13:33:28Z","updated_at":"2015-08-26T13:33:29Z","pushed_at":"2015-08-26T13:59:44Z","git_url":"git://github.com/voliva/cordova-ios.git","ssh_url":"git@github.com:voliva/cordova-ios.git","clone_url":"https://github.com/voliva/cordova-ios.git","svn_url":"https://github.com/voliva/cordova-ios","homepage":null,"size":30118,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:3.9.x","ref":"3.9.x","sha":"ebbc6d05995e50312c044dd1ae11d18e1ff669ba","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":6898387,"name":"cordova-ios","full_name":"apache/cordova-ios","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/cordova-ios","description":"Mirror of Apache Cordova iOS","fork":false,"url":"https://api.github.com/repos/apache/cordova-ios","forks_url":"https://api.github.com/repos/apache/cordova-ios/forks","keys_url":"https://api.github.com/repos/apache/cordova-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cordova-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cordova-ios/teams","hooks_url":"https://api.github.com/repos/apache/cordova-ios/hooks","issue_events_url":"https://api.github.com/repos/apache/cordova-ios/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cordova-ios/events","assignees_url":"https://api.github.com/repos/apache/cordova-ios/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cordova-ios/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cordova-ios/tags","blobs_url":"https://api.github.com/repos/apache/cordova-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cordova-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cordova-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cordova-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cordova-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cordova-ios/languages","stargazers_url":"https://api.github.com/repos/apache/cordova-ios/stargazers","contributors_url":"https://api.github.com/repos/apache/cordova-ios/contributors","subscribers_url":"https://api.github.com/repos/apache/cordova-ios/subscribers","subscription_url":"https://api.github.com/repos/apache/cordova-ios/subscription","commits_url":"https://api.github.com/repos/apache/cordova-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cordova-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cordova-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cordova-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/cordova-ios/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cordova-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cordova-ios/merges","archive_url":"https://api.github.com/repos/apache/cordova-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cordova-ios/downloads","issues_url":"https://api.github.com/repos/apache/cordova-ios/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cordova-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cordova-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cordova-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cordova-ios/labels{/name}","releases_url":"https://api.github.com/repos/apache/cordova-ios/releases{/id}","created_at":"2012-11-28T08:00:23Z","updated_at":"2015-08-26T03:21:02Z","pushed_at":"2015-08-26T14:02:04Z","git_url":"git://github.com/apache/cordova-ios.git","ssh_url":"git@github.com:apache/cordova-ios.git","clone_url":"https://github.com/apache/cordova-ios.git","svn_url":"https://github.com/apache/cordova-ios","homepage":null,"size":30118,"stargazers_count":634,"watchers_count":634,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":397,"mirror_url":"git://git.apache.org/cordova-ios.git","open_issues_count":5,"forks":397,"open_issues":5,"watchers":634,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cordova-ios/pulls/156"},"html":{"href":"https://github.com/apache/cordova-ios/pull/156"},"issue":{"href":"https://api.github.com/repos/apache/cordova-ios/issues/156"},"comments":{"href":"https://api.github.com/repos/apache/cordova-ios/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cordova-ios/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cordova-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/cordova-ios/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cordova-ios/statuses/a8ec82bc133c51c6d30f73d4121eae5dc6366102"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}