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

Issue 1097873003: Revert of AudioContext.decodeAudioData returns a Promise (Closed)

Created:
5 years, 8 months ago by Raymond Toy
Modified:
5 years, 5 months ago
Reviewers:
haraken, tkent, yhirano, hongchan
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revert of AudioContext.decodeAudioData returns a Promise (patchset #7 id:120001 of https://chromiumcodereview.appspot.com/1006963003/) Reason for revert: Causes problems noted in issue 477089 Original issue's description: > AudioContext.decodeAudioData returns a Promise > > See the spec: http://webaudio.github.io/web-audio-api/#widl-AudioContext-decodeAudioData-Promise-AudioBuffer--ArrayBuffer-audioData-DecodeSuccessCallback-successCallback-DecodeErrorCallback-errorCallback > > A few other issues are also fixed: > > No longer throw an error if the audio data arg is null. This is supposed to reject the promise and also call the errorcallback. > > The error callback is supposed to be invoked with the error. Previously, we just used null. > > BUG=420107, 464130 > TEST=decode-audio-data-promise.html > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193648 TBR=hongchan@chromium.org,haraken@chromium.org,tkent@chromium.org,yhirano@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=420107, 464130

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -354 lines) Patch
M LayoutTests/webaudio/decode-audio-data-basic.html View 1 chunk +6 lines, -7 lines 0 comments Download
M LayoutTests/webaudio/decode-audio-data-basic-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
D LayoutTests/webaudio/decode-audio-data-promise.html View 1 chunk +0 lines, -232 lines 0 comments Download
D LayoutTests/webaudio/decode-audio-data-promise-expected.txt View 1 chunk +0 lines, -18 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions.html View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webaudio/AsyncAudioDecoder.h View 2 chunks +3 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AsyncAudioDecoder.cpp View 2 chunks +11 lines, -25 lines 0 comments Download
M Source/modules/webaudio/AudioBufferCallback.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioBufferCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/webaudio/AudioContext.h View 3 chunks +1 line, -9 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 9 chunks +14 lines, -52 lines 0 comments Download
M Source/modules/webaudio/AudioContext.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Raymond Toy
Created Revert of AudioContext.decodeAudioData returns a Promise
5 years, 8 months ago (2015-04-20 20:51:11 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097873003/1
5 years, 8 months ago (2015-04-20 20:52:19 UTC) #2
commit-bot: I haz the power
Failed to apply patch for Source/modules/webaudio/AudioContext.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 8 months ago (2015-04-20 20:53:45 UTC) #4
haraken
LGTM
5 years, 8 months ago (2015-04-21 04:40:45 UTC) #6
hongchan
5 years, 5 months ago (2015-07-22 17:03:50 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698