Bug 7720 - Redundant definition of openDatabase methods
Redundant definition of openDatabase methods
Status: RESOLVED WONTFIX
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Web Database (editor: Ian Hickson)
unspecified
All All
: P2 normal
: ---
Assigned To: Ian 'Hixie' Hickson
public-webapps-bugzilla
http://dev.w3.org/html5/webdatabase/#...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-24 17:06 UTC by Nikunj Mehta
Modified: 2012-02-24 16:35 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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