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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp

Issue 2314903002: Web Audio: when media playback requires a user gesture, apply rule to cross origin iframes. (Closed)
Patch Set: move click simulation to top frame Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
index 1f8757128a0d1247d0bb80d452e248fb8baeefb8..9e807d25c2435fd195e9ab0010054102febf2437 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
@@ -132,7 +132,8 @@ void AudioScheduledSourceHandler::start(double when, ExceptionState& exceptionSt
{
DCHECK(isMainThread());
- context()->recordUserGestureState();
+ // TODO(mlamouri): record when this is called with a user gesture and could
+ // have started the AudioContext if following Safari iOS rules.
if (playbackState() != UNSCHEDULED_STATE) {
exceptionState.throwDOMException(

Powered by Google App Engine
This is Rietveld 408576698