This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14384 - "upgradeneeded" event should set request.readyState to DONE
Summary: "upgradeneeded" event should set request.readyState to DONE
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 23:29 UTC by Ben Turner
Modified: 2011-11-02 15:13 UTC (History)
4 users (show)

See Also:


Attachments

Description Ben Turner 2011-10-04 23:29:51 UTC
"upgradeneeded" event should set request.readyState to DONE, otherwise we will throw an exception getting request.result.
Comment 1 Jonas Sicking (Not reading bugmail) 2011-11-01 21:46:24 UTC
This is now fixed in the spec.
Comment 2 Jonas Sicking (Not reading bugmail) 2011-11-01 22:02:04 UTC
Ooops, wrong bug.
Comment 3 Eliot Graff 2011-11-02 01:16:20 UTC
Making the change
Comment 4 Eliot Graff 2011-11-02 15:13:11 UTC
4.8 VERSION_CHANGE transaction steps now states in step 9.3:

Fire a upgradeneeded event targeted at request. The event must use the IDBVersionChangeEvent interface and have the oldVersion property set to old version and have the newVersion property set to version. The readyState on the request is set to DONE. 

Published in 1 November Editor's Draft.
Thanks for catching this.