[Webkit-unassigned] [Bug 86127] New: IndexedDB: IDBDatabase properties not snapshotted on connection close
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 10 12:30:08 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86127
Summary: IndexedDB: IDBDatabase properties not snapshotted on
connection close
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jsbell at chromium.org
The spec sayeth:
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBDatabase
IDBDatabase.objectStoreNames: "Once the closePending flag is set on the connection, this function must return a snapshot of the list of names of the object stores taken at the time when the close method was called." ... "Even if another connection is later used to modify the version, that attribute on closed instances are not changed."
IDBDatabase.version; "On getting, this attribute must return the version of the database when this IDBDatabase instance was created. When a IDBDatabase instance is created, this is always the number passed as the version argument passed to the open call used to create the IDBDatabase instance. This value remains constant for the lifetime of the IDBDatabase object. If the connection is closed, this attribute represents a snapshot of the version that the database had when the connection was closed. Even if another connection is later used to modify the version, that attribute on closed instances are not changed."
WebKit currently always queries the back end, even for closed connections. For example, running the attached script yields:
open - expecting 1: 1
open - expecting 1: 1
open - expecting 2: 2
open - expecting 2: 2
closed - expecting 1: 2
closed - expecting 1: 2
closed - expecting 2: 2
closed - expecting 2: 2
Note the "closed - expecting 1: 2" lines that show the value was not snapshotted
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list