I write a test here: https://dl.dropbox.com/u/293671/localStorage-Event.html
Open this url in more than 2 tabs or windows, clicking the button will
log the newValue into console. All the tabs will log it, except the
tab which triggered change.
Is this what the spec means or implementation bug?
I tested it in Chrome 6 dev and Safari 5.01. Both have the same
result, so I think it's what the spec means. But why?
BTW: How can I determine when localStorage finishes storing data?
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
I write a test here: https://dl.dropbox.com/u/293671/localStorage-Event.html
Open this url in more than 2 tabs or windows, clicking the button will
log the newValue into console. All the tabs will log it, except the
tab which triggered change.
Is this what the spec means or implementation bug?
I tested it in Chrome 6 dev and Safari 5.01. Both have the same
result, so I think it's what the spec means. But why?
BTW: How can I determine when localStorage finishes storing data?
If you mean physically (on disk), I am not sure you can.If not, I guess that storage event means it finished storing the data, but this is really just an guess.
>But just because Chrome and Safari do somethingI just test it in FF3.6.8, the firing order is totally a mess. But it
>doesn't mean much--we both share a very large amount of code which means we
>share a lot of bugs too. :-)
fires 2 times if the URL is opened in 2 tabs.
>What are you trying to do?I store large amount of datas into localStorage, such as base64
images. So I want to make sure the storage is success then move on to
next task.
I think I misunderstood the spec.
> If you need this, look at WebSQLDatabase (or IndexedDB, soon).Thanks for your suggestion, Web SQL is quite unfamiliar for me and I'm
trying to make things simple. localStorage is good enough for me.
Thanks.
-imiaou