HTML5 Local Storage management

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
JustOff

Re: HTML5 Local Storage management

Unread post by JustOff » 2017-09-21, 10:07

coffeebreak wrote:Does 'storage-cleaner' delete data from any locations that are not in the Storage directory/folder?
No, it only cleans the storage directory where IndexedDB and asm.js cache (i.e. QuotaManager data) are stored.
And request: Is it possible for 'storage-cleaner' to run on demand, as well as on exit? Would you consider this?
This add-on is rather a proof of concept than a production solution. Actually this should be implemented in the browser core according the following rules:
  • If 'Offline Website Data' is selected to be cleared when Pale Moon closes, then QuotaManager data should be removed as well
  • If you manually clear the history (Ctrl+Shift+Del) with time range set to 'Everything' when 'Offline Website Data' is selected, then QuotaManager data should be also removed
Firefox developers are working on this right now, see bug #1047098.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: HTML5 Local Storage management

Unread post by coffeebreak » 2017-09-21, 12:05

First, joining the chorus - It works, thank you!
JustOff wrote:No, it only cleans the storage directory where IndexedDB and asm.js cache (i.e. QuotaManager data) are stored.
. . . . .
This add-on is rather a proof of concept than a production solution. Actually this should be implemented in the browser core according the following rules.....
Firefox developers are working on this right now, see bug #1047098

And great thanks for the detailed explanation and bug link. It is deeply appreciated.

JustOff

Re: HTML5 Local Storage management

Unread post by JustOff » 2017-09-21, 17:04


JustOff

Re: HTML5 Local Storage management

Unread post by JustOff » 2017-09-21, 20:21

JustOff wrote:
  • If 'Offline Website Data' is selected to be cleared when Pale Moon closes, then QuotaManager data should be removed as well
  • If you manually clear the history (Ctrl+Shift+Del) with time range set to 'Everything' when 'Offline Website Data' is selected, then QuotaManager data should be also removed
Thanks to Moonchild this is already available for testing in today's unstable build (20170921191919). We still have a chance to get it in the upcoming 27.5.0 release, so please verify how it works (without Storage Cleaner, of course).

User avatar
Tomaso
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: HTML5 Local Storage management

Unread post by Tomaso » 2017-09-22, 09:55

Just gave it a try using Pale Moon - Portable v27.6.0a1 (2017-09-21), and it seems to work just fine.
Good work! :)

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: HTML5 Local Storage management

Unread post by coffeebreak » 2017-09-22, 11:16

Likewise. Portable PM 27.6.0a1 - 20170921. It's working here as described. Thank you, JustOff!

JustOff

Re: HTML5 Local Storage management

Unread post by JustOff » 2017-09-22, 11:42

Thanks for confirming, this feature will be included in release 27.5.0.

Paleist

Re: HTML5 Local Storage management

Unread post by Paleist » 2017-09-22, 22:14

Oh, shiny! Thanks. :D

Locked