Hello, I'm working on a browser-like application & I'm planning to replace Android WebView with some custom WebView implementation. After cheking multiple solutions (including GeckoView) I've found Crosswalk as the most stable & actively supported solution.
The main reason why I'm dropping the use of standard Android WebView is that it doesn't allow to completely intercept requests from WebView & responses from server before they passed back to the WebView. The main limitation here (as opposed to iOS WebView) is that I'm only able to intercept the request url & not the request type or request headers. Also I'm unable to pass custom headers back to WebView with WebResourceResponce object. I found that all the above features were added to WebViewClient in Android 5.0, API level 21. As I understand current Crosswalk embedding API methods also support only request url interception: *shouldInterceptLoadRequest <https://crosswalk-project.org/apis/embeddingapidocs_v3/org/xwalk/core/XWalkResourceClient.html#shouldInterceptLoadRequest(org.xwalk.core.XWalkView,%20java.lang.String)>* (XWalkView <https://crosswalk-project.org/apis/embeddingapidocs_v3/org/xwalk/core/XWalkView.html> view, java.lang.String url) from XWalkResourceClient class. My first question is: are there any plans on updating the embedding API with interception methods from Android API 21? Like shouldInterceptRequest <http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldInterceptRequest(android.webkit.WebView,%20android.webkit.WebResourceRequest)> (WebView <http://developer.android.com/reference/android/webkit/WebView.html> view, WebResourceRequest <http://developer.android.com/reference/android/webkit/WebResourceRequest.html> request). And second question: if I'll have to make changes to Crosswalk sources myself, could you please advise, in what components should I look for needed classes (like WebResourceResponse & shouldInterceptLoadRequest) in order to modify them. I also suppose that I'll have to make changes to native code as well in order not to break JNI methods calls. Thanks in advance! -- Best regards, Alexander Golikov
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
