Bug 73374 - REGRESSION(r91931): WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins the first time it is called
Summary: REGRESSION(r91931): WKKeyValueStorageManagerGetKeyValueStorageOrigins may not...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jessie Berlin
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2011-11-29 16:39 PST by Jessie Berlin
Modified: 2011-11-29 18:29 PST (History)
5 users (show)

See Also:


Attachments
Patch (12.69 KB, patch)
2011-11-29 17:22 PST, Jessie Berlin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jessie Berlin 2011-11-29 16:39:21 PST
After http://trac.webkit.org/changeset/91931, the list of origins using local storage is not read into memory until the first time local storage is used or the list is requested.

Reading into memory from disk happens on another thread, so it is possible for the first call to WKKeyValueStorageManagerGetKeyValueStorageOrigins to report 0 origins before the reading from disk is done.

<rdar://problem/10196057>
Comment 1 Jessie Berlin 2011-11-29 17:22:47 PST
Created attachment 117078 [details]
Patch
Comment 2 Jessie Berlin 2011-11-29 18:29:48 PST
Comment on attachment 117078 [details]
Patch

Committed in http://trac.webkit.org/changeset/101441