WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
238257
Session storage items were automatically cleared after manually changing the URL (only reproducible when the dev tool panel is not opened)
https://bugs.webkit.org/show_bug.cgi?id=238257
Summary
Session storage items were automatically cleared after manually changing the ...
Dmytro
Reported
2022-03-23 06:32:18 PDT
Created
attachment 455492
[details]
example of the issue Preconditions: Do not open the developer tool panel. Steps to reproduce: 1) Try to add a key-value item to the session storage on your resource. 2) Change URL path to another route, or just CTRL+C - CTRL+V current one. 3) Check out the created session storage item. It's not present anymore. It's curious, that the browser does not clear the items if the dev tool is open, but only without a panel.
Attachments
example of the issue
(16.31 MB, video/quicktime)
2022-03-23 06:32 PDT
,
Dmytro
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2022-03-23 09:48:16 PDT
Presumably this is about when Safari and WebKit decide to swap underlying processes, which is not too surprising to be different when Web Inspector is open. On one hand, it's not great to have different behaviors when Web Inspector is open and when it isn't. But on another hand, preserving SessionStorage seems to make sense in a debugging workflow, where people reload a lot.
Radar WebKit Bug Importer
Comment 2
2022-03-24 16:07:52 PDT
<
rdar://problem/90799623
>
Dan
Comment 3
2022-08-09 22:11:27 PDT
I just ran into this issue as well. It can also be reproduced with the example created by Florian Schoppmann for
bug #199928
With developer tools closed: - Go to
https://fschopp.github.io/safari-local-storage-bug/
- Click the link in step 1 (this now works correctly) - Command + l to enter the location bar - Click enter to request the same URL again - sessionStorage has now been deleted and the example fails again
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug