On a browser, sessionStorage in Safari's Private Browsing does not work the same as Chrome's Incognito Mode and Firefox's Private Window?

后端 未结 3 1830
陌清茗
陌清茗 2020-12-09 02:34

It seems that for sessionStorage, it works differently on Chrome\'s Incognito Mode vs Safari\'s Private Browsing and Firefox\'s Private Window? I can find some

相关标签:
3条回答
  • 2020-12-09 03:13

    Your assessment is practically accurate:

    • Safari will just use a quota of 0 in private mode, so all attempts to set a value will fail. This is kinda OK according to the spec, as the spec does not mandate a minimum space requirement.
    • Chrome and Firefox still allow you to use storage, however private storage is independent from non-private, i.e. setting an item in private mode will not reflect back into non-private mode (important for localStorage only).

    Please note that other browsers are also free to throw QuotaExceededError exceptions at any given time, should you go over the quota.

    0 讨论(0)
  • 2020-12-09 03:15

    Safari Pivate mode supports localstorage and SessionStorage.

    0 讨论(0)
  • 2020-12-09 03:29

    Safari latest version (Version 12.0) already have access to sessionStorage without any issue in incognito mode.

    0 讨论(0)
提交回复
热议问题