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

Issue 2746913003: Detach buffer in decodeAudioData (Closed)

Created:
3 years, 9 months ago by Raymond Toy
Modified:
3 years, 9 months ago
Reviewers:
haraken, binji, hongchan
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Detach buffer in decodeAudioData Handle audio buffer according to WebAudio spec. If the audio buffer is detached, reject the promise with DataCloneError. Otherwise, detach the buffer and decode the buffer. Chrome Feature: https://www.chromestatus.com/feature/5539919174828032 BUG=704679, 696179 TEST=decodeAudioData/decode-audio-data-neuter.html Review-Url: https://codereview.chromium.org/2746913003 Cr-Commit-Position: refs/heads/master@{#459266} Committed: https://chromium.googlesource.com/chromium/src/+/3010bfc167e7af9d4ecd48a54189c721c2b93dbf

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments #

Total comments: 1

Patch Set 3 : Fix crash by using DataCloneError; clean up test #

Patch Set 4 : Remove isShared and rebase #

Patch Set 5 : Fix typo in comment #

Patch Set 6 : Don't reuse the ArrayBuffer with decodeAudioData. #

Patch Set 7 : Fix up tests #

Total comments: 2

Patch Set 8 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html View 1 2 3 4 5 4 chunks +15 lines, -12 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 5 6 7 1 chunk +20 lines, -3 lines 0 comments Download

Messages

Total messages: 46 (13 generated)
Raymond Toy
PTAL. haraken: this is a new area for me. Is this even close? The webaudio ...
3 years, 9 months ago (2017-03-13 20:40:07 UTC) #2
haraken
+binji Also, can we add some tests? https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode288 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:288: // If ...
3 years, 9 months ago (2017-03-14 03:17:49 UTC) #4
Raymond Toy
https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode288 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:288: // If audioData is detached, we need to reject ...
3 years, 9 months ago (2017-03-14 15:01:03 UTC) #5
Raymond Toy
On 2017/03/14 03:17:49, haraken wrote: > +binji > > Also, can we add some tests? ...
3 years, 9 months ago (2017-03-14 15:02:22 UTC) #6
binji
https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode288 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:288: // If audioData is detached, we need to reject ...
3 years, 9 months ago (2017-03-14 17:50:55 UTC) #7
haraken
On 2017/03/14 17:50:55, binji wrote: > https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp > File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): > > https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode288 > ...
3 years, 9 months ago (2017-03-14 18:16:55 UTC) #8
hongchan
On 2017/03/14 18:16:55, haraken wrote: > On 2017/03/14 17:50:55, binji wrote: > > > https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp ...
3 years, 9 months ago (2017-03-14 18:22:50 UTC) #9
binji
> > My question is about the matching between what the spec is saying and ...
3 years, 9 months ago (2017-03-14 18:28:11 UTC) #10
Raymond Toy
On 2017/03/14 18:28:11, binji wrote: > > > My question is about the matching between ...
3 years, 9 months ago (2017-03-14 18:52:45 UTC) #11
binji
On 2017/03/14 18:52:45, Raymond Toy wrote: > On 2017/03/14 18:28:11, binji wrote: > > > ...
3 years, 9 months ago (2017-03-14 19:02:15 UTC) #12
Raymond Toy
On 2017/03/14 19:02:15, binji wrote: > On 2017/03/14 18:52:45, Raymond Toy wrote: > > On ...
3 years, 9 months ago (2017-03-14 19:11:03 UTC) #13
Raymond Toy
https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode291 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:291: DOMException::create(V8TypeError, "Cannot decode detached buffer"); On 2017/03/14 03:17:49, haraken ...
3 years, 9 months ago (2017-03-14 19:32:59 UTC) #14
haraken
https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode291 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:291: DOMException::create(V8TypeError, "Cannot decode detached buffer"); On 2017/03/14 19:32:59, Raymond ...
3 years, 9 months ago (2017-03-14 19:57:51 UTC) #15
binji
On 2017/03/14 19:11:03, Raymond Toy wrote: > On 2017/03/14 19:02:15, binji wrote: > > On ...
3 years, 9 months ago (2017-03-14 20:08:05 UTC) #16
Raymond Toy
https://codereview.chromium.org/2746913003/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode291 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:291: V8TypeError, "Cannot decode detached or shared ArrayBuffer"); Can't actually ...
3 years, 9 months ago (2017-03-15 15:03:50 UTC) #18
Raymond Toy
binji: How do I make an ArrayBuffer that is shared? I'd like to add a ...
3 years, 9 months ago (2017-03-17 17:55:50 UTC) #20
binji
On 2017/03/17 17:55:50, Raymond Toy wrote: > binji: How do I make an ArrayBuffer that ...
3 years, 9 months ago (2017-03-17 18:02:03 UTC) #21
Raymond Toy
On 2017/03/17 18:02:03, binji wrote: > On 2017/03/17 17:55:50, Raymond Toy wrote: > > binji: ...
3 years, 9 months ago (2017-03-17 18:07:21 UTC) #22
Raymond Toy
On 2017/03/17 18:07:21, Raymond Toy wrote: > On 2017/03/17 18:02:03, binji wrote: > > On ...
3 years, 9 months ago (2017-03-17 18:27:55 UTC) #23
binji
On 2017/03/17 18:27:55, Raymond Toy wrote: > On 2017/03/17 18:07:21, Raymond Toy wrote: > > ...
3 years, 9 months ago (2017-03-17 18:39:34 UTC) #24
binji
On 2017/03/17 18:39:34, binji wrote: > On 2017/03/17 18:27:55, Raymond Toy wrote: > > On ...
3 years, 9 months ago (2017-03-17 18:40:54 UTC) #25
Raymond Toy
On 2017/03/17 18:40:54, binji wrote: > On 2017/03/17 18:39:34, binji wrote: > > On 2017/03/17 ...
3 years, 9 months ago (2017-03-17 21:39:29 UTC) #26
binji
On 2017/03/17 21:39:29, Raymond Toy wrote: > On 2017/03/17 18:40:54, binji wrote: > > On ...
3 years, 9 months ago (2017-03-17 21:44:10 UTC) #27
Raymond Toy
On 2017/03/17 21:44:10, binji wrote: > On 2017/03/17 21:39:29, Raymond Toy wrote: > > On ...
3 years, 9 months ago (2017-03-17 21:51:28 UTC) #28
Raymond Toy
PTAL; I think I've addressed everything.
3 years, 9 months ago (2017-03-20 18:00:01 UTC) #30
Raymond Toy
Ping
3 years, 9 months ago (2017-03-23 16:34:49 UTC) #31
hongchan
lgtm https://codereview.chromium.org/2746913003/diff/120001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2746913003/diff/120001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode289 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:289: // promise with error.. super nit: two periods? ...
3 years, 9 months ago (2017-03-23 16:40:26 UTC) #32
Raymond Toy
Before landing, I'm going to add a chrome feature to let people know that the ...
3 years, 9 months ago (2017-03-23 16:50:34 UTC) #33
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/2746913003/140001
3 years, 9 months ago (2017-03-23 17:50:05 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/406846)
3 years, 9 months ago (2017-03-23 19:43:35 UTC) #39
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/2746913003/140001
3 years, 9 months ago (2017-03-23 20:49:29 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/3010bfc167e7af9d4ecd48a54189c721c2b93dbf
3 years, 9 months ago (2017-03-23 23:04:19 UTC) #45
haraken
3 years, 9 months ago (2017-03-23 23:30:12 UTC) #46
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698