-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
The failing use case that I saw:
- open a new secure compose window
- quickly type/paste something into the body before the first
draftSave()
is activated (SAVE_DRAFT_FREQUENCY = 3000
ms) - the draft will not be saved
This causes some tests to periodically fail (e.g. mail.google.com - saving and rendering compose drafts when offline
) and generally bad UX.
Reason: ComposeDraftModule.hasBodyChanged()
relies on lastDraftBody
property which is initialized as undefined
and it ignores the first updates (returns false)