You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/07/14 21:08:06 UTC

[jira] [Updated] (CB-7049) Support whitelist in WKWebView

     [ https://issues.apache.org/jira/browse/CB-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-7049:
---------------------------------

    Description: 
https://git-wip-us.apache.org/repos/asf/cordova-ios.git branch "wkwebview"

As of iOS 8 beta 2, you can't yet.

Filed radar:
rdar://problem/17423600

------

Summary:
When using UIWebView, you could intercept requests using NSURLProtocol. With the new WKWebView, NSURLProtocol does not intercept requests anymore.

This is useful for HTTP authentication, encryption of assets, etc.

Steps to Reproduce:
1. Use WKWebView
2. Instantiate a NSURLProtocol
3. Observe that you can't intercept the requests of the WKWebView

Expected Results:
Ability to intercept requests of a WKWebView using NSURLProtocol

Actual Results:
No ability to intercept requests of a WKWebView using NSURLProtocol

Version:
iOS 8 beta 2

Configuration:
iOS Simulator, iPad 2



  was:
Branch: https://github.com/shazron/cordova-ios/tree/wkwebview-only

As of iOS 8 beta 2, you can't yet.

Filed radar:
rdar://problem/17423600

------

Summary:
When using UIWebView, you could intercept requests using NSURLProtocol. With the new WKWebView, NSURLProtocol does not intercept requests anymore.

This is useful for HTTP authentication, encryption of assets, etc.

Steps to Reproduce:
1. Use WKWebView
2. Instantiate a NSURLProtocol
3. Observe that you can't intercept the requests of the WKWebView

Expected Results:
Ability to intercept requests of a WKWebView using NSURLProtocol

Actual Results:
No ability to intercept requests of a WKWebView using NSURLProtocol

Version:
iOS 8 beta 2

Configuration:
iOS Simulator, iPad 2




> Support whitelist in WKWebView
> ------------------------------
>
>                 Key: CB-7049
>                 URL: https://issues.apache.org/jira/browse/CB-7049
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>         Environment: iOS 8 beta 2
>            Reporter: Shazron Abdullah
>
> https://git-wip-us.apache.org/repos/asf/cordova-ios.git branch "wkwebview"
> As of iOS 8 beta 2, you can't yet.
> Filed radar:
> rdar://problem/17423600
> ------
> Summary:
> When using UIWebView, you could intercept requests using NSURLProtocol. With the new WKWebView, NSURLProtocol does not intercept requests anymore.
> This is useful for HTTP authentication, encryption of assets, etc.
> Steps to Reproduce:
> 1. Use WKWebView
> 2. Instantiate a NSURLProtocol
> 3. Observe that you can't intercept the requests of the WKWebView
> Expected Results:
> Ability to intercept requests of a WKWebView using NSURLProtocol
> Actual Results:
> No ability to intercept requests of a WKWebView using NSURLProtocol
> Version:
> iOS 8 beta 2
> Configuration:
> iOS Simulator, iPad 2



--
This message was sent by Atlassian JIRA
(v6.2#6252)