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 7720 - Redundant definition of openDatabase methods
Summary: Redundant definition of openDatabase methods
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Web Database (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://dev.w3.org/html5/webdatabase/#...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-24 17:06 UTC by Nikunj Mehta
Modified: 2012-02-24 16:35 UTC (History)
3 users (show)

See Also:


Attachments

Description Nikunj Mehta 2009-09-24 17:06:45 UTC
There seems to be no difference between the openDatabase methods defined in WindowDatabase and WorkerUtilsDatabase.

It is possible to restructure these interfaces differently so that there is less redundancy. My proposal is the following IDL:
[Supplemental, NoInterfaceObject]
interface DatabaseAsyncOpen {
  Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in optional DatabaseCallback creationCallback);
};
Window implements DatabaseAsyncOpen;

[Supplemental, NoInterfaceObject]
interface DatabaseSyncOpen {
  DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in optional DatabaseCallback creationCallback);
};
WorkerUtils implements DatabaseSyncOpen;
WorkerUtils implements DatabaseAsyncOpen;
Comment 1 Ian 'Hixie' Hickson 2010-08-18 01:32:47 UTC
If the spec goes anywhere, this might be worth doing. Closing for now, though, since the spec seems dead.
Comment 2 Ian 'Hixie' Hickson 2012-02-24 16:35:48 UTC
spec did not go anywhere