Closed Bug 1129087 Opened 9 years ago Closed 9 years ago

Gmail redirects are very slow

Categories

(Firefox for iOS :: Browser, defect)

All
iOS 8
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
fxios - ---

People

(Reporter: bnicholson, Unassigned)

References

Details

STR: Go to gmail.com and sign in. It takes multiple redirects, where each redirect takes at least a second or two, taking longer than expected to load. Safari doesn't have this problem.
My guess is that this is happening because GMail is trying some fallback scenarios for APIs that it needs. The WebView does not support all the APIs that Safari has and I think that is why it redirects through two or three different versions of the mobile GMail code.

One thing that may be missing or not fully implemented in the WebView is window.applicationCache for example. (This is a hunch, because I see window.applicationCache is set to UNCACHED)
Also, if it was not clear, I think these issues are very GMail application specific and not related to redirects at all. Setting window.location from the console results in an instant redirect.
I also ruled out things in our app that possibly slow down redirects. I ran the app with the following disabled:

 * Reader Mode / User Scripts
 * Navigation Delegate
 * UI Delegate
 * KVO

Which made no difference.

To completely rule out our code I wrote a minimal iOS app with just a WKWebView: the slow redirects also happen there.
UIWebView is much faster.

This is the redirect path taken from webView:shouldStartLoadWithRequest:navigationType:

https://gmail.com/
https://mail.google.com/mail/
https://mail.google.com/mail/u/0/
https://mail.google.com/mail/u/0/x/8qe2vyjb3zls-/?f=1
https://mail.google.com/mail/mu/
https://mail.google.com/mail/mu/mp/995/
about:blank
https://mail.google.com/mail/mu/mp/995/#tl/Inbox
about:blank

(About blank is probably because some frame magic that GMail does)
This needs to be tested on iOS9 to find out if this is a WebView issue or a gmail issue.
I think there's nothing we can do here. Might be fixed in iOS9?
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.