Bug 252661 - Access to localStorage after QuotaExceeded error freezes browser
Summary: Access to localStorage after QuotaExceeded error freezes browser
Status: RESOLVED DUPLICATE of bug 251800
Alias: None
Product: WebKit
Classification: Unclassified
Component: Website Storage (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified macOS 13
: P2 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-21 05:24 PST by Akif
Modified: 2023-02-27 11:24 PST (History)
2 users (show)

See Also:


Attachments
Minimal repro (615 bytes, text/html)
2023-02-21 05:24 PST, Akif
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Akif 2023-02-21 05:24:38 PST
Created attachment 465107 [details]
Minimal repro

If you overflow localStorage by some reason you will receive QuotaExceeded error once, but then if you try to access to localStorage browser freezes.
Attaching minimal repro.
Comment 1 Sihui Liu 2023-02-21 09:49:42 PST
Thanks for the bug report.

It reproduces for me on Safari Technology Preview 163, and spindump indicates the web process (responsible for rendering web page) is busy syncing LocalStorage items after error. It does not reproduce for me on WebKit Nightly build (latest OpenSource WebKit version, which means it might be fixed but not shipped yet.)

I think this is a dupe of https://bugs.webkit.org/show_bug.cgi?id=251800.
Comment 2 Sihui Liu 2023-02-21 09:53:27 PST
Explanation about cause of in this commit: https://commits.webkit.org/259571@main.
Comment 3 Akif 2023-02-22 08:23:42 PST
When can I check fixed behaviour in Tech Preview?
Comment 4 Sihui Liu 2023-02-22 09:52:45 PST
(In reply to Akif from comment #3)
> When can I check fixed behaviour in Tech Preview?

It should be in next STP.
Comment 5 Alexey Proskuryakov 2023-02-27 11:24:46 PST
Let's mark as dupe then, can always re-open if the theory doesn't hold.

*** This bug has been marked as a duplicate of bug 251800 ***