Settings saved in localStorage gone after closing the browser

2,029 views
Skip to first unread message

Joshua Lückers

unread,
Aug 7, 2010, 11:13:12 AM8/7/10
to Chromium-extensions
I have an extension which stores its settings in a localStorage. But
if I close the browser (Google Chrome 6.0.472.25 dev running at Ubuntu
10.10 development version) the settings will be deleted.
This always worked in a previous version of Google Chrome. Is there
something changed recently that might cause this issue or am I doing
something wrong with my extension?

Paul Kinlan

unread,
Aug 7, 2010, 6:25:14 PM8/7/10
to Joshua Lückers, Chromium-extensions
I would file a bug on http://crbug.com/new with a detailed description.  localStorage should not be deleted when you close the browser (sessionStorage would).

P


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Arne Roomann-Kurrik

unread,
Aug 9, 2010, 1:25:31 PM8/9/10
to Paul Kinlan, Joshua Lückers, Chromium-extensions
Also make sure your profile directory isn't being cleared - for example, sometimes I test Chrome with new profile directories under /tmp which get deleted when I restart.

~Arne

Joshua Lückers

unread,
Aug 10, 2010, 7:58:13 AM8/10/10
to Chromium-extensions
My profile directory is not being cleared. It works fine for another
extension I made. Just this particular one doesn't seem to remember
it's localStorage. (No code changes and it did work before in other
version of Chrome).
So shall I fill in a bug report and if yes what kind of info should I
provide when doing so?

Regards,

On Aug 9, 7:25 pm, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> Also make sure your profile directory isn't being cleared - for example,
> sometimes I test Chrome with new profile directories under /tmp which get
> deleted when I restart.
>
> ~Arne
>
>
>
> On Sat, Aug 7, 2010 at 3:25 PM, Paul Kinlan <paulkin...@chromium.org> wrote:
> > I would file a bug onhttp://crbug.com/newwith a detailed description.
> >  localStorage should not be deleted when you close the browser
> > (sessionStorage would).
>
> > P
>
> > On Sat, Aug 7, 2010 at 4:13 PM, Joshua Lückers <jos...@sensiva.net> wrote:
>
> >> I have an extension which stores its settings in a localStorage. But
> >> if I close the browser (Google Chrome 6.0.472.25 dev running at Ubuntu
> >> 10.10 development version) the settings will be deleted.
> >> This always worked in a previous version of Google Chrome. Is there
> >> something changed recently that might cause this issue or am I doing
> >> something wrong with my extension?
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Chromium-extensions" group.
> >> To post to this group, send email to chromium-extensi...@chromium.org.
> >> To unsubscribe from this group, send email to
> >> chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > .

Arne Roomann-Kurrik

unread,
Aug 10, 2010, 2:02:28 PM8/10/10
to Joshua Lückers, Chromium-extensions
A bug report wouldn't hurt - please try to include as much code or steps to reproduce as possible (while still remaining readable to the people reviewing the bug).  

If you're willing to attach a copy of the extension with instructions on how to test, that would be most helpful as well.

~Arne

To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Reply all
Reply to author
Forward
0 new messages