[Webkit-unassigned] [Bug 158812] New: [OSX, iOS] Need delegate API to modify requests before dispatching
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 15 15:05:08 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=158812
Bug ID: 158812
Summary: [OSX, iOS] Need delegate API to modify requests before
dispatching
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: iOS
OS: All
Status: NEW
Severity: Critical
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: leo.natan at outlook.com
We are working on a security application, where we need to modify requests to route them through our backend infrastructure, to access internal resources.
So a request for https://example.acme/path/to/resource would be modified to https://secure.acme.com/https://exmaple.acme/path/to/resource with some cookies added for session identification.
So far we have been using UIWebView on iOS, and we have setup NSURLProtocol to modify fields before they are dispatched by CFNetwork.
We would like to move to WKWebView to take advantage of the new architecture. We need a way to modify requests at the client UI process, before they are dispatched to network. We need to modify fields such as URL and cookies.
We understand this is not possible with out-of-process design, but we do believe some control should be give to the client UI process to control requests before dispatch.
We believe an API similar to -webView:decidePolicyForNavigationAction:decisionHandler: would be a good place to be able to modify the requests.
We discussed this with the WebKit guys at WWDC 2016, and we reached the conclusion to open this bug report.
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160615/1bc590d0/attachment.html>
More information about the webkit-unassigned
mailing list