No error on with those on my Nexus 5. :(

I do notice that both of those references include links, which means they have " in their string contents which gets escaped. I had a problem in the iOS app with this breaking because the bridge was sending the JSON blob into a URL and backslashes (\") were misconverted into forward-slashes (/") which caused JSON deserialization to fail on the native side of the bridge.

In the Android case we're using the JS prompt() system for the bridge which *should* not be doing weird things to the text... but clearly something is being weird in some cases!

Try putting an encodeURIComponent() right at the bridge level and de-encoding on the other side and see if that helps.

    var ret = window.prompt( JSON.stringify( messagePack) );
->
    var ret = window.prompt( encodeURIComponent( JSON.stringify( messagePack) ) );
^ and then the appropriate decoding on the native side.



-- brion 


On Mon, Jul 28, 2014 at 11:17 AM, Dmitry Brant <dbrant@wikimedia.org> wrote:
We've been receiving a number of crash reports related to clicking on reference links in certain pages. [1]

Unfortunately I haven't been able to reproduce the error, even when browsing the very same page as implied in the crash report.  The only clue so far is that the issue seems to be restricted to Japanese pages.

Would anyone with access to an Android device please try to reproduce this? Here are a couple pages mentioned in the crash reports:

Try clicking reference #4 in this page:
https://ja.wikipedia.org/wiki/%E6%A1%83%E8%8F%AF%E6%9C%88%E6%86%9A

...and reference #3 in this page:
https://ja.wikipedia.org/wiki/%E3%83%90%E3%83%88%E3%83%BC

Let us know if you get a crash from any of the above!

-Dmitry

_______________________________________________
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l