1. Open www.gmail.com in Fennec Native. 2. Enter user name and password. 3. An XML error appears. In the built-in Webkit browser a mobile GMail website appears. Tested on Sony Xperia Neo and on Samsung Galaxy SII - same results.
This works for me this morning. Anyhow this is Google's issue, the last time they did this it was an issue with an unescaped ampersand ...
Some more details: In my inbox I have an email from somebody whose name is יצחק לוי, in Hebrew letters. The Android stock browser shows the inbox without problems, but Firefox stops and gives an error: __________________________________________________ XML Parsing Error: not well-formed Location: https://mail.google.com/mail........... Line Number 49, Column 11: <span dir=rtl><b>יצחק לוי</b></span> ----------^ __________________________________________________ Column 11 is after the equals sign (=). My guess is that Firefox doesn't like it that the argument value is without quotes. Aharon, is it possible to fix it on GMail's side? Or is there a reason to send it without quotes? If I try to access another account in which I don't have emails with right-to-left sender names, GMail works.
Created attachment 644682 [details] screenshot I am able to reproduce. I've also checked and we don't have any hidden control characters inserted in the code in unexpected place.
Unable to reproduce after changing user agent on my desktop browser, but look what I've found is the source of the provided mobile page https://mail.google.com/mail/mu – This is indeed an xhtml page, and the RTL patches probably intended to HTML pages and not XHTML. Still, I'm not even sure if the page itself validates, as I don't see the closing tag for the meta elements. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"> <html> <!-- --> <head> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width"> <meta name="format-detection" content="email=no">
copying comment from dupe that I opened: I also tried entering the URI of the page with the error manually into desktop Firefox (which was logged into the same GMail account). I can't tell if GMail served exactly the same content and headers as it did for mobile, but the inbox displayed without errors. On the desktop there is an HTTP header Content-Type:text/html; charset=UTF-8 but the page itself says <html xmlns="http://www.w3.org/1999/xhtml"> and <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/> (I don't know how to view the HTTP headers in Fennec) The page is still malformed XML, with dir=rtl without quotes, so the question is, why is desktop Firefox not using the XML parser to parse i, but Fennec is.
I tried spoofing user agents in both direction, and it turns out that with the user agent string: Mozilla/5.0 (Android; Mobile; rv:17.0) Gecko/17.0 Firefox/17.0 on either desktop or mobile, the HTTP headers say: Content-Type: application/html+xml; charset=UTF-8 and I get the XML parsing error; but with the user agent string: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0 also on either desktop or mobile, the HTTP headers say: Content-Type: text/html; charset=UTF-8 and the inbox displays without errors.
Does this still reproduce?
It seems to work now. There's another issue - Firefox seems to get the old GMail mobile site, not the new one that the stock browser gets. But it's a question for a different bug.