Bug 25894
Summary: | It is possible for LocalStorage to not be persistent | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jeremy Orlow <jorlow> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | beidson, benm, cmarcelo, dasau, j.isorce, laszlo.gombos |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | All |
Jeremy Orlow
LocalStorage is not database backed if page->settings()->localStorageDatabasePath() returns "". Instead, the code should return an immutable LocalStorage (like during private browsing) rather than returning a mutable (but not database backed) version.
This is described in more detail in this email thread: https://lists.webkit.org/pipermail/webkit-dev/2009-May/007790.html
I'm happy to take this on and should be able to get to it in the next couple weeks.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jeremy Orlow
FYI: I'm still planning on fixing this once I get a couple of my refactoring changes (https://bugs.webkit.org/show_bug.cgi?id=25376) in.
Julien Isorce
Any update on this ?
Dan Saunders
Any update on this? It is causing localStorage to not persist between application launches for Mac WebKit1 WebView. The only way to persist localStorage between application launches is using a private API and setting localStorageDatabasePath. This is a commonly used HTML5 feature that is broken.
Brady Eidson
(In reply to comment #3)
> Any update on this? It is causing localStorage to not persist between
> application launches for Mac WebKit1 WebView. The only way to persist
> localStorage between application launches is using a private API and setting
> localStorageDatabasePath.
Which, on Mac, is a thing you can do.
If one were writing a Mac App Store app they'd need it to be API, but we have received zero such requests at Apple.