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

Issue 2435263002: bindings: Set strong reference from PerformanceObserver to callback (Closed)

Created:
4 years, 2 months ago by bashi
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Set strong reference from PerformanceObserver to callback Otherwise the callback can be garbage-collected. This is a tentative solution until TraceWrapper is fully implemented. BUG=658030 Committed: https://crrev.com/cb168398aeefebfb5bf8cb39aa9e82b1d47c7b01 Cr-Commit-Position: refs/heads/master@{#426753}

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/performance/performance-observer-callback-after-gc.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp View 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
bashi
PTAL Using private property is easier than using [Custom=visitDOMWrapper] in this case.
4 years, 2 months ago (2016-10-21 05:28:12 UTC) #4
haraken
LGTM Can we add a test for this?
4 years, 2 months ago (2016-10-21 06:42:56 UTC) #5
haraken
Nit: I'd prefer using visitDOMWrapper since it makes the translation to traceWrapper more straightforward though.
4 years, 2 months ago (2016-10-21 06:44:14 UTC) #6
bashi
Added test. Agreed visitDOMWrapper is better, but until traceWrapper is fully implemented, it's not as ...
4 years, 2 months ago (2016-10-21 07:04:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2435263002/20001
4 years, 2 months ago (2016-10-21 07:05:26 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-21 08:46:15 UTC) #11
haraken
+Michael We need to support this in traceWrapper.
4 years, 2 months ago (2016-10-21 08:48:33 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:28:16 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cb168398aeefebfb5bf8cb39aa9e82b1d47c7b01
Cr-Commit-Position: refs/heads/master@{#426753}

Powered by Google App Engine
This is Rietveld 408576698