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

Issue 2549673004: Remove RefPtr<ScriptState> from PerformanceObserver (Closed)

Created:
4 years ago by haraken
Modified:
4 years ago
Reviewers:
Yuki
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove RefPtr<ScriptState> from PerformanceObserver RefPtr<ScriptState> stored in DOM objects has a risk of leaking ScriptStates to unexpected worlds. We should explicitly pass in ScriptState when we need it. BUG=669812 Committed: https://crrev.com/abaeeda1ff88d9c71936f120e5c37c4a88c302da Cr-Commit-Position: refs/heads/master@{#435916}

Patch Set 1 #

Patch Set 2 : temp #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -14 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp View 1 chunk +2 lines, -2 lines 1 comment Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceObserver.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceObserver.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
haraken
PTAL
4 years ago (2016-12-02 06:54:34 UTC) #2
Yuki
LGTM % a comment. https://codereview.chromium.org/2549673004/diff/20001/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp (right): https://codereview.chromium.org/2549673004/diff/20001/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp#newcode58 third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp:58: currentExecutionContext(info.GetIsolate()), performance, callback); Why don't ...
4 years ago (2016-12-02 07:07:02 UTC) #3
haraken
On 2016/12/02 07:07:02, Yuki wrote: > LGTM % a comment. > > https://codereview.chromium.org/2549673004/diff/20001/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp > File ...
4 years ago (2016-12-02 07:18:57 UTC) #4
Yuki
On 2016/12/02 07:18:57, haraken wrote: > On 2016/12/02 07:07:02, Yuki wrote: > > LGTM % ...
4 years ago (2016-12-02 07:41:35 UTC) #5
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/2549673004/20001
4 years ago (2016-12-02 07:43:15 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-02 11:39:10 UTC) #9
commit-bot: I haz the power
4 years ago (2016-12-02 11:41:42 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/abaeeda1ff88d9c71936f120e5c37c4a88c302da
Cr-Commit-Position: refs/heads/master@{#435916}

Powered by Google App Engine
This is Rietveld 408576698