pwnall / chromeview

Proof of concept Android WebView implementation based on Chromium code
1.69k stars 434 forks source link

ChromeAwContentsClientProxy::shouldInterceptRequest #1

Closed tankh64 closed 11 years ago

tankh64 commented 11 years ago

chromeview-master/src/us/costan/chrome/impl/ChromeAwContentsClientProxy.java

requires a check on response object

public InterceptedRequestData shouldInterceptRequest(String url) { if (viewClient != null) { WebResourceResponse response = viewClient.shouldInterceptRequest(view_, url); if (response != null) return new InterceptedRequestData(response.getMimeType(), response.getEncoding(), response.getData()); else return null; } else { return null; } }

pwnall commented 11 years ago

Thank you! I pushed a new version that includes this fix.