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

Issue 2798973002: Resume() should return if context is already running (Closed)

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

Description

Resume() should return if context is already running It's valid to call AudioContext.resume() if the context is already running. The promise should resolve immediately; we can handle the promise now instead of saving it on a list to be resolved later. This prevents us from setting the context state to running again when it's already running, because that triggers a DCHECK. The spedc also says to resolve the promise when the context is already running. BUG=707949 TEST=audiocontext-suspend-resume.html Review-Url: https://codereview.chromium.org/2798973002 Cr-Commit-Position: refs/heads/master@{#462506} Committed: https://chromium.googlesource.com/chromium/src/+/5149859e198b741fe8c89a165e4035339efcdb62

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Raymond Toy
PTAL
3 years, 8 months ago (2017-04-05 18:26:45 UTC) #2
hongchan
lgtm with nit https://codereview.chromium.org/2798973002/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html (right): https://codereview.chromium.org/2798973002/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html#newcode126 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html:126: "Create online context") Let's not mix ...
3 years, 8 months ago (2017-04-05 21:44:42 UTC) #3
Raymond Toy
https://codereview.chromium.org/2798973002/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html (right): https://codereview.chromium.org/2798973002/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html#newcode126 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html:126: "Create online context") On 2017/04/05 21:44:42, hongchan wrote: > ...
3 years, 8 months ago (2017-04-05 21:53:48 UTC) #4
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/2798973002/20001
3 years, 8 months ago (2017-04-05 21:57:08 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/423065)
3 years, 8 months ago (2017-04-05 22:04:42 UTC) #9
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/2798973002/20001
3 years, 8 months ago (2017-04-06 15:29:35 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 16:44:07 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5149859e198b741fe8c89a165e40...

Powered by Google App Engine
This is Rietveld 408576698