GMail new UI reply with attachment freezes sometimes

361 views
Skip to first unread message

lockmagic

unread,
May 4, 2018, 11:21:03 PM5/4/18
to InboxSDK
When the user replies to a message, we add an attachment and sometimes this causes the UI to freeze. The user has to reload the page to get out of it. There is nothing in the console that indicates any error. This only happens with the new GMail UI, the old UI works just fine. Ironically, the reply message makes it fine to the recipient.
reply-error.png

lockmagic

unread,
May 6, 2018, 5:55:51 PM5/6/18
to InboxSDK
I did some more investigation. This applies only to the new GMail UI and old stuff works fine. It also only applies to "reply" and regular new message compose works fine.

 User press "send" on a reply compose window and on "presending" event the extension does the following:
      - Issues "composeView.cancel()"
      - Issues an ajax call to obtain metadata
      - On ajax completion, extension updates "body" and adds an attachment using composeView.attachFiles(). 
     -  On completion of composeView.attachFiles() promise the extension issues composeView.send();

The problem is happening on "composeView.attachFiles()". I see a red popup message "saving message error". After few seconds I see a new message "sending message" and finally "message sent". I don't understand why the attach failed and then succeeded. 

3 unexpected behaviors
    - why display an error message to the user if the upload of attachment is retried and is successful?
   - why the inline reply compose window is not dismissed after the send completed?
   -  why no 'sent' event is dispatched on the composeView?

When I press "discard" then the UI disappears without any effect. As I mentioned before the message actually makes it fine along with attachment to the recipients. 

This error wasn't there just last week so definitely a regression.

I retested  the flow with a "popout" reply compose instead of inline. Same flow as above, I still see the attachment error message "saving message error" popping up but the compose window closed after the send. Again, no 'sent' event is dispatched. 

Omar Ismail

unread,
May 14, 2018, 4:56:28 PM5/14/18
to lock magic, InboxSDK
Can you provide a sample extension so it's easy for us to debug/fix this? Thanks.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/81229483-ce51-46e8-86e6-779826b3a220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lockmagic

unread,
May 20, 2018, 12:26:29 AM5/20/18
to InboxSDK
Hi Omar,

I replied to you in email but seems you didn't get it. Anyway, you can install the extension from chrome store. Here is the link


You will need to try several times with reply to get the bug to show.
Reply all
Reply to author
Forward
0 new messages