Local storage not working properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Fix Released
|
Undecided
|
Unassigned | ||
webbrowser-app (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I noticed some days ago now, that local storage (and may be other web storage) not persist data randomly.
It's pretty easy to show the issue with a website which use local storage.
To reproduce this issue :
- With a phone or emulator, go to http://
- Create a simple todo list
- Close the browser
- Open the browser
- And go back to http://
- If data are correctly restored, reproduce all the step and you will see, sometimes, it not restore the last local storage.
So the issue is present in Browser.
I also noticed, it happens in webview, for example in my application : https:/
So the problem exist in Webview too.
Changed in oxide: | |
status: | New → Fix Released |
It looks like a race condition to me. I managed to observe this only once in repeated attempts: the last item I entered in the todo-list didn’t get saved. Since bug #1456267 was fixed (in oxide 1.8), local storage data gets flushed to disk when the app becomes inactive, which happens as soon as opening the apps exposé. It could be that the app was closed fast enough that it didn’t allow the data to actually be written to disk. Not sure what can be done about that. Adding an oxide task to track the issue anyway.