W3C home > Mailing lists > Public > public-device-apis@w3.org > August 2011

Contacts API -- callers

From: Andreas Gal <gal@mozilla.com>
Date: Wed, 24 Aug 2011 19:36:01 -0700
Message-Id: <C4476A22-88DB-402E-B9BD-5F003E9B66F1@mozilla.com>
To: public-device-apis@w3.org

4.2 Contacts interface

[NoInterfaceObject]
interface Contacts {
    caller void find (DOMString[] fields, ContactFindCB successCB, optional ContactErrorCB errorCB, optional ContactFindOptions options);
};

To quote from WebIDL, http://dev.w3.org/2006/webapi/WebIDL/Overview.html#idl-callers

Specifications SHOULD NOT use callers unless required to specify the behavior of legacy APIs. (emphasis theirs, not mine)

Callable objects step outside the semantics of ECMAScript and can't be self-hosted.

I would much prefer if we drop the caller annotation here. Any objections?

Andreas
Received on Thursday, 25 August 2011 02:36:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:22 GMT