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

Issue 1111213002: Treat a stopped AudioContext as closed. (Closed)

Created:
5 years, 7 months ago by sof
Modified:
5 years, 7 months ago
Reviewers:
tkent, Raymond Toy
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Treat a stopped AudioContext as closed. An AudioContext that ends up being detached&stopped by its execution context is now treated on equal terms to one that has been explicitly close()d from script. AudioContext methods and operations over a context in such a state will now throw. This restriction applies to OfflineAudioContext as well as AudioContext. R=rtoy BUG=435867 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194666

Patch Set 1 #

Patch Set 2 : more FlakyTests removals #

Patch Set 3 : Throw on detached uses of startRendering() also #

Total comments: 1

Patch Set 4 : startRendering() doesn't (directly) raise an exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -48 lines) Patch
M LayoutTests/FlakyTests View 1 1 chunk +0 lines, -6 lines 0 comments Download
M LayoutTests/TestExpectations View 1 chunk +0 lines, -2 lines 0 comments Download
A + LayoutTests/webaudio/offlineaudiocontext-detached-no-crash.html View 1 2 1 chunk +24 lines, -17 lines 0 comments Download
A + LayoutTests/webaudio/offlineaudiocontext-detached-no-crash-expected.txt View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html View 2 chunks +12 lines, -15 lines 0 comments Download
M LayoutTests/webaudio/scriptprocessornode-detached-no-crash-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M Source/modules/webaudio/OfflineAudioContext.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
sof
Please take a look. Using AudioContexts in a stopped state leads to trouble here & ...
5 years, 7 months ago (2015-04-29 12:26:11 UTC) #2
Raymond Toy
Doesn't the fact that the offline context has been created keep the execution context alive ...
5 years, 7 months ago (2015-04-29 15:54:42 UTC) #3
sof
On 2015/04/29 15:54:42, Raymond Toy wrote: > Doesn't the fact that the offline context has ...
5 years, 7 months ago (2015-04-29 16:05:22 UTC) #4
Raymond Toy
On 2015/04/29 16:05:22, sof wrote: > On 2015/04/29 15:54:42, Raymond Toy wrote: > > Doesn't ...
5 years, 7 months ago (2015-04-29 16:07:29 UTC) #5
Raymond Toy
lgtm after you fix the nit.
5 years, 7 months ago (2015-04-29 16:07:50 UTC) #6
sof
On 2015/04/29 16:07:50, Raymond Toy wrote: > lgtm after you fix the nit. done.
5 years, 7 months ago (2015-04-29 16:16:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1111213002/50001
5 years, 7 months ago (2015-04-29 16:30:44 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 17:25:53 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194666

Powered by Google App Engine
This is Rietveld 408576698