ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly

jamesr

FrameRequestCallback interface should be designated as Callback=FunctionOnly

State:
CLOSED
Product:
Request Animation Frame
Raised by:
Jatinder Mann
Opened on:
2011-06-01
Description:
Unless explicitly specified with a Callback=FunctionOnly statement in the IDL, we will be allowing objects to be registered as callbacks, like so:

E.g.
var obj = new Object();
obj.handleEvent = function (event) { alert (‘hello, world!’); }
window.requestAnimationFrame(obj);

Registering objects as callbacks is somewhat uncommon and may not be what we want. The Geolocation PositionCallback function, http://dev.w3.org/geo/api/spec-source.html, also explicitly calls out that the callback be a function only.

The change would look like so:

[Callback=FunctionOnly, NoInterfaceObject]
interface FrameRequestCallback {
void sample(in DOMTimeStamp time);
};
Related Actions Items:
No related actions
Related emails:
  1. [minutes] 20110706 Web Performance WG Teleconference #40 (from jmann@microsoft.com on 2011-07-06)
  2. [minutes] 20110629 Web Performance WG Teleconference #39 (from jmann@microsoft.com on 2011-06-30)
  3. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-28)
  4. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from slightlyoff@google.com on 2011-06-28)
  5. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-27)
  6. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from bzbarsky@MIT.EDU on 2011-06-08)
  7. RE: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from Savil.Srivastava@microsoft.com on 2011-06-08)
  8. RE: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from pettay@mappi.helsinki.fi on 2011-06-02)
  9. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from bzbarsky@MIT.EDU on 2011-06-02)
  10. Re: [minutes] 20110601 Web Performance WG Teleconference #35 (from getify@gmail.com on 2011-06-02)
  11. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-02)
  12. [minutes] 20110601 Web Performance WG Teleconference #35 (from jmann@microsoft.com on 2011-06-02)
  13. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-02)
  14. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-02)
  15. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from Olli.Pettay@helsinki.fi on 2011-06-02)
  16. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from cam@mcc.id.au on 2011-06-02)
  17. RE: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from Savil.Srivastava@microsoft.com on 2011-06-01)
  18. RE: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from Savil.Srivastava@microsoft.com on 2011-06-01)
  19. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from bzbarsky@MIT.EDU on 2011-06-01)
  20. Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from bzbarsky@MIT.EDU on 2011-06-01)
  21. ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame] (from sysbot+tracker@w3.org on 2011-06-01)

Related notes:

We resolved to leave this text unchanged.

James Robinson, 6 Jul 2011, 21:29:59

Display change log ATOM feed


Yoav Weiss <yoavweiss@google.com>, Ilya Grigorik <igrigorik@google.com>, Chairs, Philippe Le Hégaret <plh@w3.org>, Xiaoqian Wu <xiaoqian@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 7.html,v 1.1 2019/11/12 07:37:30 carcone Exp $