RE: [ResourceTiming] onresourcetimingbufferfull attribute type

I've updated Performance to inherit EventTarget, so you can listen for the resourcetimingbufferfull event. Thanks for the feedback.

Jatinder

From: Christophe Dumez - SISA [mailto:ch.dumez@partner.samsung.com]
Sent: Wednesday, August 7, 2013 10:14 AM
To: Jatinder Mann; Arvind Jain; James Simonsen
Cc: public-web-perf@w3.org
Subject: RE: [ResourceTiming] onresourcetimingbufferfull attribute type

Hi,

Thank you for making the update.
Is there any plan to have Performance inherit EventTarget so that people can listen for the resourcetimingbufferfull event using addEventListener()?

I don't know of any other interface having an EventHandler attribute without inheriting EventTarget.

Kr,
Christophe Dumez - Samsung Electronics
________________________________
From: Jatinder Mann [jmann@microsoft.com]
Sent: Wednesday, August 07, 2013 18:53
To: Jatinder Mann; Christophe Dumez - SISA; Arvind Jain; James Simonsen
Cc: public-web-perf@w3.org<mailto:public-web-perf@w3.org>
Subject: RE: [ResourceTiming] onresourcetimingbufferfull attribute type
I have updated the onresourcebufferfull attribute to be an EventHandler in the Resource Timing spec: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/ResourceTiming/Overview.html#dom-performance-onresourcetimingbufferfull.

I have also updated step 20 of the processing model.

Thanks,
Jatinder

From: Jatinder Mann [mailto:jmann@microsoft.com]
Sent: Tuesday, July 23, 2013 1:47 PM
To: Christophe Dumez - SISA; Arvind Jain; James Simonsen
Cc: public-web-perf@w3.org<mailto:public-web-perf@w3.org>
Subject: RE: [ResourceTiming] onresourcetimingbufferfull attribute type

It doesn't seem like there is a clear reason why we chose to use Function, and EventListener seems like the recommended way to define this behavior. I can take an action item to update the spec.

Thanks,
Jatinder

From: Christophe Dumez - SISA [mailto:ch.dumez@partner.samsung.com]
Sent: Wednesday, July 17, 2013 11:38 PM
To: Arvind Jain; James Simonsen
Cc: public-web-perf@w3.org<mailto:public-web-perf@w3.org>
Subject: RE: [ResourceTiming] onresourcetimingbufferfull attribute type

Hi,

Sorry, I meant EventHandler [1], I was confused by the naming in WebKit.

Here are a few example of interfaces using EventTarget / EventHandler:
- http://www.w3.org/html/wg/drafts/html/master/webappapis.html#globaleventhandlers
- https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBRequest
- http://dev.w3.org/html5/workers/#workerglobalscope
- https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html#idl-def-BatteryManager
- https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode-section

Kr,
Christophe DUMEZ.

[1] http://www.w3.org/html/wg/drafts/html/master/webappapis.html#eventhandler
________________________________
From: Arvind Jain [arvind@google.com]
Sent: Thursday, July 18, 2013 05:06
To: James Simonsen
Cc: Christophe Dumez - SISA; public-web-perf@w3.org<mailto:public-web-perf@w3.org>
Subject: Re: [ResourceTiming] onresourcetimingbufferfull attribute type
I don't recall any reason for why we chose Function and not EventListener. Christophe, could you point me to a spec that uses EventListener?

Arvind

On Wed, Jul 17, 2013 at 2:15 PM, James Simonsen <simonjam@google.com<mailto:simonjam@google.com>> wrote:
I was hoping someone else would chime in with a reason. If there isn't one, we should just use EventListener like everywhere else.

James

On Wed, Jul 10, 2013 at 2:45 AM, Christophe Dumez - SISA <ch.dumez@partner.samsung.com<mailto:ch.dumez@partner.samsung.com>> wrote:
Hi,

According to the latest editor draft [1] of the Resource Timing API, the Performance.onresourcetimingbufferfull attribute should be of type 'Function'. Other DOM objects seem to use the 'EventListener' type (and inherit EventTarget) for similar purposes.

Is there any reason why onresourcetimingbufferfull is not an EventListener and why the Performance does not inherit EventTarget?

Kr,
Christophe DUMEZ

[1] http://www.w3c-test.org/webperf/specs/ResourceTiming/#extensions-performance-interface

Received on Wednesday, 7 August 2013 22:07:04 UTC