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

Issue 825603005: AudioBufferSourceNode.buffer can only be set once. (Closed)

Created:
5 years, 11 months ago by Raymond Toy
Modified:
5 years, 10 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

AudioBufferSourceNode.buffer can only be set once. According to https://github.com/WebAudio/web-audio-api/issues/288, the buffer attribute of an AudioBufferSourceNode can only be set once. Display a deprecation warning when this happens. A use counter is also added to see how often this actually happens. BUG=448960 TEST=dom-exceptions.html updated with new test Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189127

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update according to review #

Patch Set 3 : Capitalize buffer #

Total comments: 2

Patch Set 4 : Use deprecation message instead of DOM error #

Total comments: 3

Patch Set 5 : Update according to review #

Patch Set 6 : Update expected result #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M LayoutTests/webaudio/audiobuffersource-channels.html View 1 3 chunks +6 lines, -3 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions.html View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions-expected.txt View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
Raymond Toy
PTAL
5 years, 11 months ago (2015-01-16 22:50:49 UTC) #2
hongchan
lgtm with nits https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html File LayoutTests/webaudio/audiobuffersource-channels.html (right): https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html#newcode38 LayoutTests/webaudio/audiobuffersource-channels.html:38: source = context.createBufferSource(); This is something ...
5 years, 11 months ago (2015-01-16 23:42:09 UTC) #3
Raymond Toy
https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html File LayoutTests/webaudio/audiobuffersource-channels.html (right): https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html#newcode38 LayoutTests/webaudio/audiobuffersource-channels.html:38: source = context.createBufferSource(); On 2015/01/16 23:42:09, hoch wrote: > ...
5 years, 11 months ago (2015-01-17 00:03:16 UTC) #4
Raymond Toy
https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html File LayoutTests/webaudio/audiobuffersource-channels.html (right): https://codereview.chromium.org/825603005/diff/1/LayoutTests/webaudio/audiobuffersource-channels.html#newcode38 LayoutTests/webaudio/audiobuffersource-channels.html:38: source = context.createBufferSource(); On 2015/01/17 00:03:16, Raymond Toy wrote: ...
5 years, 11 months ago (2015-01-20 18:06:00 UTC) #5
Raymond Toy
PTAL
5 years, 11 months ago (2015-01-20 18:37:57 UTC) #7
Ken Russell (switch to Gerrit)
What's the compatibility impact of this change? Intuitively, it seems potentially large. https://codereview.chromium.org/825603005/diff/40001/Source/modules/webaudio/AudioBufferSourceNode.cpp File Source/modules/webaudio/AudioBufferSourceNode.cpp ...
5 years, 11 months ago (2015-01-20 21:26:16 UTC) #8
Raymond Toy
Yes, this change has a potentially large compatibility issue. I have found that (only) one ...
5 years, 11 months ago (2015-01-20 21:35:03 UTC) #9
Ken Russell (switch to Gerrit)
On 2015/01/20 21:35:03, Raymond Toy wrote: > Yes, this change has a potentially large compatibility ...
5 years, 11 months ago (2015-01-21 01:18:14 UTC) #10
Raymond Toy
On 2015/01/21 01:18:14, Ken Russell wrote: > On 2015/01/20 21:35:03, Raymond Toy wrote: > > ...
5 years, 11 months ago (2015-01-21 20:22:06 UTC) #11
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/825603005/diff/60001/Source/core/frame/UseCounter.cpp File Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/825603005/diff/60001/Source/core/frame/UseCounter.cpp#newcode834 Source/core/frame/UseCounter.cpp:834: return "Setting AudioBufferSourceNode.buffer more than once is deprecated ...
5 years, 11 months ago (2015-01-21 22:58:46 UTC) #12
Raymond Toy
https://codereview.chromium.org/825603005/diff/60001/Source/core/frame/UseCounter.cpp File Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/825603005/diff/60001/Source/core/frame/UseCounter.cpp#newcode834 Source/core/frame/UseCounter.cpp:834: return "Setting AudioBufferSourceNode.buffer more than once is deprecated and ...
5 years, 11 months ago (2015-01-21 23:16:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825603005/100001
5 years, 11 months ago (2015-01-21 23:17:13 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/47228)
5 years, 11 months ago (2015-01-22 01:43:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825603005/100001
5 years, 11 months ago (2015-01-23 16:49:33 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/47523)
5 years, 11 months ago (2015-01-23 19:02:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825603005/100001
5 years, 11 months ago (2015-01-27 17:54:46 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/UseCounter.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 11 months ago (2015-01-27 17:54:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825603005/120001
5 years, 11 months ago (2015-01-27 18:12:52 UTC) #27
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/UseCounter.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 11 months ago (2015-01-27 18:13:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825603005/140001
5 years, 10 months ago (2015-01-28 17:04:12 UTC) #31
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 18:28:38 UTC) #32
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189127

Powered by Google App Engine
This is Rietveld 408576698