[Webkit-unassigned] [Bug 178204] IndexedDB causes massive storage usage on iOS, never recycles usage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 24 10:43:01 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=178204

--- Comment #9 from Mohammad Shraim <moh.shraim at hotmail.com> ---
Dear Chris Dumez,

Before i report this bug here, i open another on bugs.chromium because i though it is chrome bug, then found its exist on all iOS applications using IndexDB

the following link show you a Short video of case

https://bugs.chromium.org/p/chromium/issues/detail?id=855647#c5

Please note; 
1- I didnt test the case on iOS 12 beta.
2- This problem should happen exactly when u close Safari or Chrome on iOS while a running transaction is not completed; So to have it on your device keep open and close the browser quickly as you can see at video..
3- Personally iam using  JS Library from Firebase (Firestore - with enabled prdisitance) and this using IndexDB but they dont close transactions after each operation, and keep listening for DB changes... so when i open the real website application on iOS i can see the big data increase each time.. sometimes reach 10MB.


(In reply to Chris Dumez from comment #8)
> (In reply to Chris Dumez from comment #7)
> > (In reply to Nishanth from comment #6)
> > > We are running in to the same issues on ios apps with indexed db for offline
> > > storage where customers have complained about app occupying humongous
> > > storage space. One device showed the app has used up 18.4G of storage but
> > > the actual document size is under 30 Mb. Any help on this will be greatly
> > > appreciated.
> > 
> > Does not seem to reproduce for me on iOS 12 beta (or macOS) with Safari.
> > 1. Went to https://ssbyte.com/dbtest/ in Safari
> > .../Library/WebKit/WebsiteData/IndexedDB/https_ssbyte.com_0/__dbnames/
> >     68K Jul 20 16:30 IndexedDB.sqlite3
> >     32K Jul 20 16:30 IndexedDB.sqlite3-shm
> >    8.1K Jul 20 16:30 IndexedDB.sqlite3-wal
> > 
> > 2. reloaded the page several times:
> > .../Library/WebKit/WebsiteData/IndexedDB/https_ssbyte.com_0/__dbnames/
> >     68K Jul 20 16:30 IndexedDB.sqlite3
> >     32K Jul 20 16:30 IndexedDB.sqlite3-shm
> >    8.1K Jul 20 16:30 IndexedDB.sqlite3-wal
> 
> If I relaunch Safari and reopen the page, it temporarily increases a bit:
>     68K Jul 20 16:42 IndexedDB.sqlite3
>     32K Jul 20 16:42 IndexedDB.sqlite3-shm
>     16K Jul 20 16:42 IndexedDB.sqlite3-wal
> 
> But then if I reload, the size goes down again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180724/5c04897d/attachment.html>


More information about the webkit-unassigned mailing list