This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11419 - Local Storage Data Not Retained Between Sessions When Running Browser Locally
Summary: Local Storage Data Not Retained Between Sessions When Running Browser Locally
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Storage (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 02:32 UTC by rlane6013
Modified: 2011-01-10 22:14 UTC (History)
4 users (show)

See Also:


Attachments

Description rlane6013 2010-11-28 02:32:29 UTC
Not sure if this was intended to work this way, but we are attempting to develop an app that runs locally on the browser and makes use of local storage.

The exact same app when run from a server retains the data between sessions as expected.

When run on the same browser (Firefox) and initiated locally, the data is not retained between sessions.
Comment 1 Boris Zbarsky 2010-11-28 03:08:06 UTC
The behavior of localStorage for situations where there is no useful origin (such as file:// URIs) is not defined by the spec.

That said, what you're seeing doesn't sound like particularly intended behavior in Firefox; can you please file a Gecko bug?
Comment 2 Ian 'Hixie' Hickson 2011-01-10 22:14:11 UTC
This sounds like an issue either with the browser or with the file:// protocol spec, if any, not the Web Storage spec.