maqetta/maqetta — Issue #1626: Missing REST call to setWorkbenchState after closing editor
Author: JonFerraiolo
Created: 2012-01-24 17:04:42+00:00
State: open
Labels: Priority High, Regression

@peller

I wonder if this is a regression from AMD conversion. I haven't debugged into code to find out what's wrong.

* Open up Chrome debugger's network panel
* New HTML File
* Add a Button
* Save
* Clear network panel contents
* Click on "x" to close

Result=> There is only a network request to ```removeWorkingCopy``` but no network request to ```setWorkbenchState```. If you try the same steps in the Preview 4 release, you'll see ```removeWorkingCopy``` followed by ```setWorkbenchState```. Because we don't do a ```setWorkbenchState```, if user refreshes the browser, then the file that had been open will reappear as open even though user had closed that file before issuing the refresh command.