User can close the FxA window in Fx for iOS before login message is sent.
#4377
Comments
|
I bet |
Ugh, I forgot about that. |
|
@shane-tomlinson that might also not work because |
|
Just wanted to check in - is this workaround something we can do prior to Dec 22 (our tentative iOS 6.0 release date) or is it worth going the full phased route as explained in https://bugzilla.mozilla.org/show_bug.cgi?id=1289480? |
FWIW I wouldn't count on us getting another deploy out production in that timeframe. @sleroux ping me tomorrow if you want to discuss what some other options might be. |
|
I found out today that we can use a Using |
|
from mtg: should we change timeout for train-79? |
Yes, that's one of 3 patches I'm putting together today to add on to train-79. |
This is only a stopgap to see if we can increase the # of users that successfully sign in on Fx for iOS w/o changing any browser code. issue #4377
The `login` message is sent after 5 seconds regardless. Also send it on the `visibilitychange` and `blur` DOM events in case the user receives the email and opens their email client before the event is sent. issue #4377
The `login` message is sent after 5 seconds regardless. Also send it on the `visibilitychange` and `blur` DOM events in case the user receives the email and opens their email client before the event is sent. issue #4377
|
While testing on device, I just realized I made a bone-headed decision when adding the delay - no wonder signin success is so low on iOS. I added the delay for all accounts, not just unverified accounts. If a user is verified and does not need to go through signin confirmation, the screen just sits there for 5/10 seconds, says "working...", and then if the user hasn't given up, the message is sent the browser does the right thing. This is silly. The |
Good point, I think originally when we added this, all users went through confirmation so they would always see that screen. Now, user's can potentially bypass confirmation with IP profiling. We should definitely just send the send the |
For verified accounts, the `login` message is sent immediately. For unverified accounts, the `login` message is sent after the first of 1) a 5 second timeout, or 2) a `blur` DOM event. The `blur` DOM event is to handle the case where a user receives their verification email and opens the email client before the timeout has occurred. issue #4377
For verified accounts, the `login` message is sent immediately. For unverified accounts, the `login` message is sent after the first of 1) a 5 second timeout, or 2) a `blur` DOM event. The `blur` DOM event is to handle the case where a user receives their verification email and opens the email client before the timeout has occurred. Fx for iOS allows the user to see the "confirm your email" screen, but never takes it away after the user verifies. Allow the poll so that the user sees the "Signup complete!" screen after they verify their email. fixes #4377
In c04980d, we added a 5 second delay after completing signup/signin before sending the
loginnotification to Fx for iOS. We did this so that users would see some messaging that says "go check your email" before Fx for iOS took over the screen and displayed its own messaging.This delay gives the user a window of opportunity to close the FxA window before the
loginmessage is sent. If this happens, the browser is none the wiser of the user's login and will never start syncing.If we can detect the window is about to close, maybe in a
beforeunloadhandler, we should send theloginmessage immediately.The text was updated successfully, but these errors were encountered: