touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #98336
[Bug 1487754] Re: Local storage not working properly
Hi Olivier,
What do you mean by "inactive" ?
In navigator :
After localstorage change, I try to wait less than 5 second before close the app. It happens several times.
After localstorage change, I try to wait 5 second before close the app. It happens 1 time.
After localstorage change, I try to wait 10 second before close the app. It never happens.
So maybe there a race condition like you said.
In webview :
I try to find a workaround for my app.
And now data are only flush only once during the first launch of the app.
Other write never flush to local storage after app exit.
I can wait more than 10 minutes or put it in the background or lock the screen nothing is flush to local storage.
My code cannot be a problem because it works well during runtime (And I read directly in local storage). There are also no issue on desktop browser (chromium,firefox).
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1487754
Title:
Local storage not working properly
Status in Oxide:
New
Status in webbrowser-app package in Ubuntu:
Invalid
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://todomvc.com/examples/angularjs/
- Create a simple todo list
- Close the browser
- Open the browser
- And go back to http://todomvc.com/examples/angularjs/
- 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://uappexplorer.com/app/yaoswa.inglebard
So the problem exist in Webview too.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1487754/+subscriptions
References