https://bugzilla.wikimedia.org/show_bug.cgi?id=64721

Michael M. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from Michael M. <[email protected]> ---
What about this approach?
1. Before saving a module to localStorage try to save a string of 20 KB* there.
2. If this fails, don't save the module in localStorage.
3. If it succeeds, try to save the module.
4. Whether or not putting the module in localStorage succeeds, remove the
string from step 1.

This will make sure that the modules never will occupy the last 20 KB* of
localStorage.

*) 20 KB is just the first number that came to my mind. Feel free to replace it
with any other reasonable number. I have several user scripts that make use of
localStorage, they take up 3 KB, but I know users who use them more heavily
than me, they probably end up at about 10 KB or more.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to