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

Issue 1762103002: Keep ScriptProcessorNode from premature GC with ScriptWrappable::hasPendingActivity() (Closed)

Created:
4 years, 9 months ago by hongchan
Modified:
4 years, 9 months ago
Reviewers:
haraken, Raymond Toy
CC:
chromium-reviews, blink-reviews, Raymond Toy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ScriptWrappable::hasPendingActivity to ScriptProcessorNode |onaudioprocess| event in ScriptProcessor node is not fired once the JS reference of the node goes out of local scope. This CL is to keep the 'out-of-scope' reference from being collected when it has an active |onaudioprocess| handler. With this patch, scriptprocessornode-premature-death.html is now correctly passing. Thus the expected text was fixed accordingly. BUG=577431, 500335, 360378, 121654, 82795 TEST=LayoutTests/webaudio/scriptprocessornode-premature-death.html (revised expected file) Committed: https://crrev.com/246a91f12971f2f6e4ba0b68fdbf5efa8afb344e Cr-Commit-Position: refs/heads/master@{#379586}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed the manual test and fixed the exisiting automated test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-premature-death-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.idl View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (9 generated)
hongchan
PTAL. The CL is very similar to https://codereview.chromium.org/1593763002/, but the testing pattern is changed due ...
4 years, 9 months ago (2016-03-03 22:05:57 UTC) #4
Raymond Toy
Please change the subject to say what you're solving, not how you're solving it. Can ...
4 years, 9 months ago (2016-03-03 22:50:52 UTC) #5
haraken
https://codereview.chromium.org/1762103002/diff/1/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h File third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h (right): https://codereview.chromium.org/1762103002/diff/1/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h#newcode110 third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h:110: bool hasPendingActivity() const final; I'm not sure how this ...
4 years, 9 months ago (2016-03-03 23:34:16 UTC) #6
hongchan
On 2016/03/03 22:50:52, Raymond Toy wrote: > Please change the subject to say what you're ...
4 years, 9 months ago (2016-03-04 17:31:02 UTC) #7
hongchan
On 2016/03/03 23:34:16, haraken wrote: > https://codereview.chromium.org/1762103002/diff/1/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h > File third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h (right): > > https://codereview.chromium.org/1762103002/diff/1/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h#newcode110 > ...
4 years, 9 months ago (2016-03-04 18:08:58 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1762103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1762103002/20001
4 years, 9 months ago (2016-03-04 18:16:00 UTC) #11
hongchan
After finding the existing test for premature GC, the manual test is dropped and fixed ...
4 years, 9 months ago (2016-03-04 18:16:11 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 19:37:01 UTC) #14
haraken
On 2016/03/04 18:16:11, hoch wrote: > After finding the existing test for premature GC, the ...
4 years, 9 months ago (2016-03-05 03:24:58 UTC) #15
Raymond Toy
lgtm
4 years, 9 months ago (2016-03-07 16:47:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1762103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1762103002/20001
4 years, 9 months ago (2016-03-07 16:47:43 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-07 18:02:27 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 18:03:39 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/246a91f12971f2f6e4ba0b68fdbf5efa8afb344e
Cr-Commit-Position: refs/heads/master@{#379586}

Powered by Google App Engine
This is Rietveld 408576698