Closed Bug 1129087 Opened 8 years ago Closed 7 years ago

Gmail redirects are very slow


(Firefox for iOS :: Browser, defect)

iOS 8
Not set



Tracking Status
fxios - ---


(Reporter: bnicholson, Unassigned)



STR: Go to 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:

(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?
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.