Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428683

Summary: Data loss in editor when leaving page with AutoSave enabled
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker
Version: 5.0Flags: ken_walker: review+
Target Milestone: 5.0 RC3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
fix none

Description Silenio Quarti CLA 2014-02-20 14:46:23 EST
1) Open the settings page on the editor category and check AutoSave.
2) Open the editor on a file.
3) Type some characters while moving the mouse and clicking on a link (Git Status, etc)

The changes made to the file may be lost.
Comment 1 Silenio Quarti CLA 2014-02-20 14:49:23 EST
Created attachment 240174 [details]
fix
Comment 2 Silenio Quarti CLA 2014-02-20 14:53:38 EST
The problem happens because the save operation is asynchronous and it may not  finish before the page is unload.  There is no way to let the page unloaded and still get the changes saved.

The best we can do is to ask the browser to prompt the user and have a appropriate message when AutoSave is enabled.