W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

[Bug 7720] New: Redundant definition of openDatabase methods

From: <bugzilla@wiggum.w3.org>
Date: Thu, 24 Sep 2009 17:06:46 +0000
To: public-webapps@w3.org
Message-ID: <bug-7720-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7720

           Summary: Redundant definition of openDatabase methods
           Product: WebAppsWG
           Version: unspecified
          Platform: All
               URL: http://dev.w3.org/html5/webdatabase/#databases
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Database
        AssignedTo: ian@hixie.ch
        ReportedBy: nikunj.mehta@oracle.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


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;


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 24 September 2009 17:06:54 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT