3. close browser and reopen, in my browser preferences, it will open last opened tabs
4. open devtools and check sessionStorage , and you'll see the value still exists.
some steps for chrome, and chrome sessionStorage is auto clear. Is there something wrong? or this is by design?
by the way, if you close tab instead of close entire browser, and undo tab close right after that, the sessionStorage is keep without clear, which is user-friendly and is consistent between msedge and chrome,