A relaunch session always re-opened the last edited file, even when the app was closed sitting on the browser page. The snapshot now records which page the app was on (SessionState.InBrowser/BrowserPath); the cmd layer lands back in the browser at the saved directory on relaunch (falling back to the startup directory if it has vanished) instead of calling BeginRestore. Browser-page snapshots clear File, which also makes the editor->browser transition an urgent save, so the back-in-browser state hits disk immediately. Legacy session files (no InBrowser key) unmarshal to false and restore the editor exactly as before. Verified on emulator and phone: editor sessions still restore the file (cursor/scroll/font), browser sessions land in the browser at the saved dir; legacy files keep the old behavior. New e2e regression test TestRestore_BrowserPageSession. |
||
|---|---|---|
| .. | ||
| e2e | ||