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>
Created attachment 117078 [details] Patch
Comment on attachment 117078 [details] Patch Committed in http://trac.webkit.org/changeset/101441