Tim Kim created CB-6726:
---------------------------

             Summary: Android Webview Not Intercepting Resource Requests 
Properly
                 Key: CB-6726
                 URL: https://issues.apache.org/jira/browse/CB-6726
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 3.5.0
            Reporter: Tim Kim
            Assignee: Andrew Grieve


The shouldInterceptRequest method in IceCreamCordovaWebViewClient.java doesn't 
seem to fire for every request. Only for things like xhrs or resources prefixed 
with http://

Steps to reproduce:
- pull down latest
- ./bin/create test
- cd into test/
- find the shouldInterceptRequest method in IceCreamCordovaWebViewClient.java 
and add a log statement to know when it fired
- ./cordova/run 
- ./cordova/log 
- only 'file:///android_asset/www/cordova_plugins.js' will make 
shouldInterceptRequest fire and not the reference to 'cordova.js' or 
'js/index.js'. 
-  add in ' <script 
src="http://code.jquery.com/jquery-1.11.0.min.js";></script>' to the index.html 
to see the shouldInterceptRequest fire

Tested on 4.4 with cordova-android 3.5.0



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

Reply via email to