Posts

Post not yet marked as solved
13 Replies
iOS 17 has new proxyConfigurations API https://developer.apple.com/documentation/network/nwparameters/privacycontext/4156642-proxyconfigurations Is this the approach to intercept WKWebView requests ?
Post not yet marked as solved
6 Replies
Looks like this issue is fixed here https://bugs.webkit.org/attachment.cgi?id=399849&action=review
Post not yet marked as solved
5 Replies
Thanks John for you suggestion. I'm actually trying to replicate something simiar to iOS native mail's email compose screen. Top part is native UI and the botton part is to add the body content with rich text capablities.Sample project - https://github.com/mohanio/WKWebViewScrollInsetRepro video - https://drive.google.com/file/d/1yUP4axcnrTWg48eQvJvTSJbh1eFso7NP/view?usp=sharing
Post not yet marked as solved
5 Replies
Sorry for wrong video link, update with correct link now.Got your point, but why is scrollView property of WKWebView exposed to public if WebKit doesn't want us to alter any of its properties ?Also, webview's scrollview content inset is adjusted in other scenraios like safe area insets(eg. content inset of scrollview is adjusted automatically if WebView underlaps UINavigationBar).I tried by setting ViewController's additionalSafeAreaInsets property to UIEdgeInsetsMake(200.0, self.additionalSafeAreaInsets.left, self.additionalSafeAreaInsets.bottom, self.additionalSafeAreaInsets.right); and the issue is not observed in this scenario but the only problem is scrollview ignores any interaction that happen in top 200 pixels so, scroll won't happen while dragging inside 0 to 200.I'm just thinking think from a point of view where its is a bug in webkit.
Post not yet marked as solved
2 Replies
Sorry for the delayed response and thanks for the pointers.We were creating SOCKS proxy socket by passing only port number, which internally uses in6addr_any address for IPV6 socket. This address doesn't work for accepting connections for IPv6 client, whereas counterpart INADDR_ANY works fine for IPv4We need to use loopback/localhost as interface name while creating SOCKS proxy socket. This internally creates socket with in6addr_loopback address for IPv6 socket.