You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/09/25 03:50:27 UTC

[GitHub] ianhowe76 opened a new issue #303: Android: executeScript failing for large return values (length greater than 10240)

ianhowe76 opened a new issue #303: Android: executeScript failing for large return values (length greater than 10240)
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/303
 
 
   Since Android updated to webview v 69.0.3497.91, any script that runs that returns content longer than 10240 bytes fails as the message gets truncated
   
   Bug appears here: https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppChromeClient.java#L114
   
   `JSONException` occurs as message is invalid JSON (truncated string)
   
   Bug has been lodged with Chrome but they won't fix it: 
   
   https://bugs.chromium.org/p/chromium/issues/detail?id=884100
   
   In the bug they report:
   
   ```
   I don't think you should rely on prompt() as a means of passing data from JS to Java. There are other APIs that are properly suited to this task.
   ```
   
   I am about to try a few ideas either `addJavascriptInterface` or `evaluateJavascipt` instead of `prompt` but would be open to suggestions of other interfaces

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org