Closed Bug 635551 Opened 13 years ago Closed 10 years ago

IndexedDB: clear() should reset key generator

Categories

(Core :: Storage: IndexedDB, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bosselmann, Unassigned)

Details

(Whiteboard: [fx4-unco-bugday])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; de-de) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b11) Gecko/20100101 Firefox/4.0b11

Clearing an objectStore should reset key generator to zero, like in Chromium 11.0.678.0 (75499)

Reproducible: Always

Steps to Reproduce:
1. Add data to objectStore
2. Clear this objectStore
3. Add again data
4. Have a look at the generated key
Actual Results:  
Key hasn't been reset to 0

Expected Results:  
Key should reset to 0
Version: unspecified → Trunk
Can you create a test page or provide a URL where we can test this bug? We'll be unable to verify it otherwise.
Whiteboard: [fx4-unco-bugday]
Attached file Testcase
Reporter, please can you confirm whether this issue still occurs using Firefox 4.0.1 (http://www.mozilla.com/firefox/new/) or higher, in Firefox safe mode (http://support.mozilla.com/kb/Safe+Mode) and/or with a clean profile (http://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile). Ideally, also check using the latest nightly: http://nightly.mozilla.org/

If this issue no longer occurs, please close as "Resolved Worksforme".

It it in fact still occurs, please provide as much extra information as possible, including what versions tried, whether safe mode/new profile tested etc. Thanks! :-)

(Template reply to inactive UNCO bugs)
Tested with latest Aurora (2011-05-24), bug still exists.
Component: DOM → DOM: IndexedDB
Version: Trunk → unspecified
This behavior wasn't specified some time ago... but Firefox is now following the latest spec : http://www.w3.org/TR/2012/WD-IndexedDB-20120524/#key-generator-concept

clear() should NOT reset key generator => this issue has become invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: