Is “localStorage” in Firefox only working when the page is online?

前端 未结 3 1004
感动是毒
感动是毒 2020-11-29 06:11

So I\'m toying around with HTML 5 and the localStorage and I\'m noticing that my values only get stored when I run the page in Firefox on the local host (i.e. http://127.0.0

3条回答
  •  一生所求
    2020-11-29 07:14

    As of Oct 5 2020, localStorage on Firefox seems to be broken again. Try this:

    1. Download Mozilla demo page: https://mdn.github.io/dom-examples/web-storage/
    2. Change the animal/color to something other than default.
    3. close the page's tab (or the browser).
    4. Download the page again. It's back to defaults. (Firefox 81:0 et.al.)

    Even worse, if you do step 1 & 2 above and then open another copy of the demo in a new tab, not only does the new tab not get the saved data, but the original demo page (refresh it) has gone back to the defaults; as though the new tab STEPPED on the saved data.

提交回复
热议问题