On a browser, sessionStorage in Safari's Private Browsing does not work the same as Chrome's Incognito Mode and Firefox's Private Window?
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.
Safari latest version (Version 12.0) already have access to sessionStorage without any issue in incognito mode.
Safari Pivate mode supports localstorage and SessionStorage.