Error in using gmail mobile with android user agent string

Bug #716887 reported by v_2e
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Expired
Undecided
Unassigned

Bug Description

I encountered a strange issue on midori.

I'm using user agent string "Mozilla/5.0 (Linux; U; Android 1.5; en-us; Google Ion Build/CRB43) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1" to pretend to being an android browser. So I can use Gmail mobile in midori. The email list is OK. But when I click one of the email to view its content, it just gives me a "Oops!":

"It looks like you've lost connection to the server. Please check that you have a working network connection and try again."

GtkLauncher from the same libwebkit is OK. So it seems a problem of midori. I also tested latest midori from git. it even cannot load the initial email list view.

Moved from FS: http://www.twotoasts.de/bugs/index.php?do=details&task_id=899

Revision history for this message
v_2e (v-2e) wrote :

Does it help to use the Safari identification that is offered in the Preferences?

argafal

Revision history for this message
v_2e (v-2e) wrote :

Safari is a desktop browser.
iPhone works but using old mobile interface.

When using android user agent and I click to view an email, I got the error page and found this in console:

598 @ https://mail.google.com/mail/mu/: TypeError: Result of expression 'o' [undefined] is not an object.
1 @ https://mail.google.com/mail/mu/#tl/Inbox: TypeError: Result of expression 'e.Qc[H]' [undefined] is not an object.

How can I debug this?

jzhang918

Revision history for this message
v_2e (v-2e) wrote :

I used wireshark to compare midori with android browser. I found midori used SSLv3 while android browser used TLSv1. And just when I clicked to view content of an email, android browser did a TLS handshake again while midori didn't. So I have two questions now:

1. how can I make midori also use TLSv1?

2. how can I make midori do a handshake as android browser does?

Thanks.

jzhang918

Revision history for this message
v_2e (v-2e) wrote :

epiphany is OK with android user agent.

jzhang918

Revision history for this message
v_2e (v-2e) wrote :

I now use the attached patch as a workaround. It works very well for me.

jzhang918

Revision history for this message
v_2e (v-2e) wrote :

I attached a wrong patch. This is the right one.

jzhang918

tags: added: android mobile useragent
Revision history for this message
Cris Dywan (kalikiana) wrote :

Is this still reproducible?

Changed in midori:
status: New → Incomplete
Revision history for this message
Cris Dywan (kalikiana) wrote :

I tested it, with the given user agent string. I can't click anything whatsover and I'm seeing peculiar error messages in gmail in the inspector.

For what it's worth, I made a change that could theoretically affect gmail for the better, with regard to the pieces of code uncommented by the above patch.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Midori because there has been no activity for 60 days.]

Changed in midori:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.