Summary: | Heavy LocalStorage use can cause page to freeze | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nolan Lawson <nolan> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | andersca, ap, beidson, medikoo+webkit.org, nekr.fabula | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.10 | ||||||
Attachments: |
|
Description
Nolan Lawson
2015-09-27 07:11:42 PDT
I feel like this may have been reported before, but I cannot find it now. This bug is not terribly surprisingly. That it doesn't happen in other browsers *is* kind of surprising; LocalStorage is a synchronous API, so it's very easy to abuse. Can you get a spin dump while this is happening? (In reply to comment #2) > LocalStorage is a synchronous API ... This is not entirely true. The only synchronous operation is getting the initial values from the UI process. (In reply to comment #3) > (In reply to comment #2) > > LocalStorage is a synchronous API ... > > This is not entirely true. The only synchronous operation is getting the > initial values from the UI process. I wasn't talking about the way we've implemented I/O, but rather how it operates from script's perspective. Seems like only Safari has asynchronous localStorage behind the scene. Indeed surprisingly that other browsers do all the ops in sync way, naturally they cannot have async/race bugs here. Anyway, thanks for doing localStorage async! I still don't have time to dig in to this myself at the moment, but would find a spindump very interesting. That would give the appropriate hints on how to solve this. It seems it's a duplicate of https://bugs.webkit.org/show_bug.cgi?id=129896 Could you please verify with the latest nightly? https://nightly.webkit.org *** This bug has been marked as a duplicate of bug 165622 *** |