#11474 closed enhancement (fixed)
Update DataSaverPlugin to use browser localStorage when possible.
Reported by: | Tiago Teresa Teodósio | Owned by: | Tiago Teresa Teodósio |
---|---|---|---|
Priority: | normal | Component: | DataSaverPlugin |
Severity: | normal | Keywords: | javascript |
Cc: | Trac Release: |
Description
As there is a 4KB limit on the cookie size, larger form data can't be saved. I propose the usage of browser localStorage when possible.
There is a proposed implementation attached, based on datasaverplugin/trunk/datasaver/htdocs/datasaver.js?rev=8703
Attachments (2)
Change History (12)
Changed 11 years ago by
Attachment: | datasaver.js added |
---|
comment:1 Changed 11 years ago by
Keywords: | javascript added |
---|---|
Status: | new → accepted |
comment:2 Changed 11 years ago by
Yes, my code is given to the public under the same license of the original code.
Changed 11 years ago by
Attachment: | js_bug_fix.diff added |
---|
comment:4 follow-up: 6 Changed 11 years ago by
I am very sorry, but I realized there is an error on the JavaScript code, which however did not prevent it from working as expected.
I attached the patch with the fix.
This is how the patch was produced, on the repository root:
svn diff > js_bug_fix.diff
Again I am sorry for the trouble.
comment:6 Changed 11 years ago by
Replying to TiagoTT:
I am very sorry, but I realized there is an error on the JavaScript code, ...
Hey, thanks for the notice. I've looked through, but not checked the code that thoroughly myself, so this is partially my fault too. Really interesting, that it doesn't bail out, but I bet, that a look at firebug console would have told me about it.
Anyway, I've quickly applied the fix, so not much harm done for now.
Again I am sorry for the trouble.
Na, don't worry. Bugs lure on the way to improvements, but without a change there isn't a chance for improvements at all. I'm still glad you brought the issue up.
comment:7 Changed 8 years ago by
Status: | accepted → new |
---|
comment:8 Changed 8 years ago by
Owner: | Steffen Hoffmann deleted |
---|
comment:9 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:10 Changed 6 years ago by
Owner: | set to Tiago Teresa Teodósio |
---|
Tested with nearly 600000 chars, just works.
Even if we did not yet enforce an explicit declaration of consent I do assume, that you're ok with including your code into the GPL'ed source of this plugin, right?