Closed Bug 606281 Opened 15 years ago Closed 15 years ago

IndexedDB: Don't return different objects representing the same object stores and indexes

Categories

(Core :: Storage: IndexedDB, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

Details

Attachments

(1 file)

Comment on attachment 485092 [details] [diff] [review] Patch, v1 >+ let objectStore1 = db.createObjectStore("foo", ""); >+ let objectStore2 = transaction.objectStore("foo"); >+ ok(objectStore1 === objectStore2, "Got same objectStores"); >+ >+ let index1 = objectStore1.createIndex("bar", "key"); >+ let index2 = objectStore2.index("bar"); >+ ok(index1 === index2, "Got same indexes"); >+ >+ transaction.oncomplete = continueToNextStep; >+ yield; >+ >+ transaction = db.transaction("foo"); >+ >+ objectStore1 = transaction.objectStore("foo"); >+ objectStore2 = transaction.objectStore("foo"); >+ ok(objectStore1 === objectStore2, "Got same objectStores"); >+ >+ index1 = objectStore1.index("bar"); >+ index2 = objectStore2.index("bar"); >+ ok(index1 === index2, "Got same indexes"); Please also test that the first set of objectStores/indexes are different from the second set of objectStores/indexes. r=me with that.
Attachment #485092 - Flags: review?(jonas) → review+
Status: ASSIGNED → RESOLVED
blocking2.0: betaN+ → ---
Closed: 15 years ago
Resolution: --- → FIXED
Component: DOM → DOM: IndexedDB
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: