Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Issue 18916003: Performance.onwebkitresourcetimingbufferfull should be a Function (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, lgombos
Visibility:
Public.

Description

Performance.onwebkitresourcetimingbufferfull should be a Function Make Performance.onwebkitresourcetimingbufferfull a Function instead of an EventListener to match the specification: http://www.w3c-test.org/webperf/specs/ResourceTiming/#extensions-performance-interface This means that there is no longer any event passed as parameter to the callback and that we can drop the [EventTarget] IDL extended attribute for the Performance interface. This patch also adds support for Function attributes to the bindings generator as it was missing. BUG=258452 BUG=257583

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -47 lines) Patch
A LayoutTests/http/tests/misc/webtiming-buffer-full-no-event.html View 1 chunk +35 lines, -0 lines 1 comment Download
A LayoutTests/http/tests/misc/webtiming-buffer-full-no-event-expected.txt View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 2 chunks +29 lines, -0 lines 0 comments Download
M Source/core/dom/EventTargetFactory.in View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/page/Performance.h View 5 chunks +9 lines, -16 lines 0 comments Download
M Source/core/page/Performance.cpp View 6 chunks +33 lines, -25 lines 1 comment Download
M Source/core/page/Performance.idl View 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-09 17:50:47 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/18916003/diff/1/LayoutTests/http/tests/misc/webtiming-buffer-full-no-event.html File LayoutTests/http/tests/misc/webtiming-buffer-full-no-event.html (right): https://codereview.chromium.org/18916003/diff/1/LayoutTests/http/tests/misc/webtiming-buffer-full-no-event.html#newcode14 LayoutTests/http/tests/misc/webtiming-buffer-full-no-event.html:14: bufferFullCount++; Can you also assert that this === window.performance? ...
7 years, 5 months ago (2013-07-09 18:19:58 UTC) #2
adamk
This approach will allow leaking objects between Isolated Worlds (that is, between page script and ...
7 years, 5 months ago (2013-07-09 18:26:44 UTC) #3
arv (Not doing code reviews)
The memory leak is not an issue in this case [*] but I do agree ...
7 years, 5 months ago (2013-07-09 18:36:25 UTC) #4
abarth-chromium
Why does the spec use a Function here? That seems wrong. We should change the ...
7 years, 5 months ago (2013-07-09 18:37:19 UTC) #5
abarth-chromium
On 2013/07/09 18:36:25, arv wrote: > The memory leak is not an issue in this ...
7 years, 5 months ago (2013-07-09 18:38:44 UTC) #6
do-not-use
On 2013/07/09 18:37:19, abarth wrote: > Why does the spec use a Function here? That ...
7 years, 5 months ago (2013-07-10 09:47:28 UTC) #7
do-not-use
On 2013/07/10 09:47:28, Christophe Dumez wrote: > On 2013/07/09 18:37:19, abarth wrote: > > Why ...
7 years, 5 months ago (2013-07-26 06:57:54 UTC) #8
adamk
7 years, 5 months ago (2013-07-26 16:24:14 UTC) #9
Message was sent while issue was closed.
On 2013/07/26 06:57:54, Christophe Dumez wrote:
> On 2013/07/10 09:47:28, Christophe Dumez wrote:
> > On 2013/07/09 18:37:19, abarth wrote:
> > > Why does the spec use a Function here?  That seems wrong.  We should
change
> > the
> > > spec to work like every other DOM object.
> > 
> > I have asked the question on the W3C mailing list:
> > http://lists.w3.org/Archives/Public/public-web-perf/2013Jul/0004.html
> > 
> > Let's wait for a response and decide what to do accordingly.
> 
> Looks like the specification is going to be updated to use an EventHandler
> instead of a Function:
> http://lists.w3.org/Archives/Public/public-web-perf/2013Jul/0027.html
> 
> I am therefore abandoning this CL. We may need another CL later on to have
> Performance inherit EventTarget if the specification does so.

Thanks for doing the legwork on this one, an EventHandler seems better to me
(especially because it avoids having to re-implement that again...).

Powered by Google App Engine
This is Rietveld 408576698