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   

Description Jeremy Orlow 2009-05-20 14:23:31 PDT
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.
Comment 1 Jeremy Orlow 2009-06-08 11:10:47 PDT
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.
Comment 2 Julien Isorce 2016-01-15 07:31:42 PST
Any update on this ?
Comment 3 Dan Saunders 2016-10-13 12:42:45 PDT
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.
Comment 4 Brady Eidson 2016-10-13 15:26:50 PDT
(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.