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

Issue 2404743002: Web Audio: record autoplay status when an AudioContext is destroyed. (Closed)

Created:
4 years, 2 months ago by mlamouri (slow - plz ping)
Modified:
4 years, 2 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews, hongchan, Raymond Toy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web Audio: record autoplay status when an AudioContext is destroyed. This is recording if an AudioContext with autoplay restrictions was block, allowed to play and also record whether allowing start() to activate the AudioContext would have allowed playback. BUG=614115 TEST=BaseAudioContextTest.cpp (unit tests) Committed: https://crrev.com/86a60cb0983a8bd9689d5c0ce7684f04799ada02 Cr-Commit-Position: refs/heads/master@{#425966}

Patch Set 1 #

Patch Set 2 : remove empty line #

Total comments: 13

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : add comments #

Total comments: 1

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : move recording #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h View 1 2 3 4 5 chunks +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 5 6 chunks +29 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 1 2 3 4 1 chunk +294 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
mlamouri (slow - plz ping)
4 years, 2 months ago (2016-10-09 19:31:39 UTC) #2
Raymond Toy
https://codereview.chromium.org/2404743002/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2404743002/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode149 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:149: recordAutoplayStatus(); I think if the user closes a tab, ...
4 years, 2 months ago (2016-10-10 17:05:10 UTC) #7
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/2404743002/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2404743002/diff/20001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode149 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:149: recordAutoplayStatus(); On 2016/10/10 at 17:05:10, Raymond Toy wrote: ...
4 years, 2 months ago (2016-10-10 18:44:40 UTC) #9
Raymond Toy
https://codereview.chromium.org/2404743002/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h (right): https://codereview.chromium.org/2404743002/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h#newcode303 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h:303: // gesture while the AudioContext is locked. What does ...
4 years, 2 months ago (2016-10-10 20:11:15 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/2404743002/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h (right): https://codereview.chromium.org/2404743002/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h#newcode303 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h:303: // gesture while the AudioContext is locked. On 2016/10/10 ...
4 years, 2 months ago (2016-10-10 21:26:32 UTC) #11
Raymond Toy
lgtm for the core webaudio parts. You should have haraken@ look at BaseAudioContextTests to see ...
4 years, 2 months ago (2016-10-10 21:30:09 UTC) #12
haraken
LGTM https://codereview.chromium.org/2404743002/diff/60001/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp (right): https://codereview.chromium.org/2404743002/diff/60001/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp#newcode165 third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp:165: ScriptState::Scope scope(getScriptStateFrom(childDocument())); Or you can use V8TestingScope, which ...
4 years, 2 months ago (2016-10-11 03:45:48 UTC) #13
mlamouri (slow - plz ping)
+isherman@ for tools/metrics/
4 years, 2 months ago (2016-10-15 18:23:26 UTC) #19
haraken
https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode150 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:150: recordAutoplayStatus(); This is safe but in general it's not ...
4 years, 2 months ago (2016-10-17 00:57:33 UTC) #20
mlamouri (slow - plz ping)
https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode150 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:150: recordAutoplayStatus(); On 2016/10/17 at 00:57:33, haraken wrote: > This ...
4 years, 2 months ago (2016-10-17 11:34:45 UTC) #21
haraken
On 2016/10/17 11:34:45, mlamouri wrote: > https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp > File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): > > https://codereview.chromium.org/2404743002/diff/80001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode150 > ...
4 years, 2 months ago (2016-10-17 12:56:25 UTC) #22
Ilya Sherman
metrics lgtm
4 years, 2 months ago (2016-10-17 23:31:18 UTC) #23
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/2404743002/100001
4 years, 2 months ago (2016-10-18 12:33:18 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-18 15:28:23 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 15:30:12 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/86a60cb0983a8bd9689d5c0ce7684f04799ada02
Cr-Commit-Position: refs/heads/master@{#425966}

Powered by Google App Engine
This is Rietveld 408576698