Closed Bug 878713 Opened 11 years ago Closed 10 years ago

mega.co.nz doesn't clean up indexedDB, unbound space usage

Categories

(Tech Evangelism Graveyard :: English Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ferongr, Unassigned)

Details

mega.co.nz uses indexedDB to store file chunks while downloading them, until the download finishes and the page can start decrypting the file. Sadly, it looks like the page doesn't clean up indexedDB from past finished or aborted downloads, resulting in indexedDB growing constantly. 

I had my 60GB SSD filled with 20GB of indexedDB data in my profile folder. Firefox UI lacks any indication of indexedDB size, per site or in total so it took a while to find the reason.
Same here. At least having some sort of indicator like "By the way, websites are storing 13GB of data on your hdd, you might want to take a look at this" would be nice.
The page info dialog -> Permissions tab -> Maintain Offline Storage section shows how much space is used, but I agree that this is hardly discoverable.
It would be nice if we tracked origin usage even after the user allowed unlimited storage for an origin, then after some point say 1GB, we would notify the user about it.

Of course, mega.co.nz should fix their app in the first place.
(In reply to John Volikas from comment #0)
> mega.co.nz uses indexedDB to store file chunks while downloading them

Yeah, see bug 891555 comment 1 for steps to remove data.

(In reply to la from comment #1)
> Same here. At least having some sort of indicator like "By the way, websites
> are storing 13GB of data on your hdd, you might want to take a look at this"
> would be nice.

After a long process we've ended up with a single prompt when disk usage exceeds 50mb. After agreeing to that you're sort of on your own since we don't want to constantly add UI to web apps that already got your permission.
(In reply to ben turner [:bent] (needinfo? encouraged) from comment #3)
> After a long process we've ended up with a single prompt when disk usage
> exceeds 50mb. After agreeing to that you're sort of on your own since we
> don't want to constantly add UI to web apps that already got your permission.

Would be nice to have an option to auto-cleanup at the end of the session (browser exit/restart), just like cookies :)
(In reply to ben turner [:bent] (needinfo? encouraged) from comment #3)
> After a long process we've ended up with a single prompt when disk usage
> exceeds 50mb. After agreeing to that you're sort of on your own since we
> don't want to constantly add UI to web apps that already got your permission.

So is this a TE bug with that prompt in place?
mega.co.nz was updated in the past month and no longer exhibits this behavior. No data at all are stored in IDB, though the underlying issue still persists and there's no elegant way to monitor indexedDB storage use or even be warned when the partition holding the profile is almost full.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.