Changeset 225785 in webkit


Ignore:
Timestamp:
Dec 12, 2017 9:26:34 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Allow AudioContext to start when getUserMedia is on
https://bugs.webkit.org/show_bug.cgi?id=180680

Patch by Youenn Fablet <youenn@apple.com> on 2017-12-12
Reviewed by Eric Carlson.

Source/WebCore:

Test: webrtc/getUserMedia-webaudio-autoplay.html

  • Modules/webaudio/AudioContext.cpp:

(WebCore::AudioContext::willBeginPlayback):

LayoutTests:

  • webrtc/getUserMedia-webaudio-autoplay-expected.txt: Added.
  • webrtc/getUserMedia-webaudio-autoplay.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r225782 r225785  
     12017-12-12  Youenn Fablet  <youenn@apple.com>
     2
     3        Allow AudioContext to start when getUserMedia is on
     4        https://bugs.webkit.org/show_bug.cgi?id=180680
     5
     6        Reviewed by Eric Carlson.
     7
     8        * webrtc/getUserMedia-webaudio-autoplay-expected.txt: Added.
     9        * webrtc/getUserMedia-webaudio-autoplay.html: Added.
     10
    1112017-12-12  Ms2ger  <Ms2ger@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r225784 r225785  
     12017-12-12  Youenn Fablet  <youenn@apple.com>
     2
     3        Allow AudioContext to start when getUserMedia is on
     4        https://bugs.webkit.org/show_bug.cgi?id=180680
     5
     6        Reviewed by Eric Carlson.
     7
     8        Test: webrtc/getUserMedia-webaudio-autoplay.html
     9
     10        * Modules/webaudio/AudioContext.cpp:
     11        (WebCore::AudioContext::willBeginPlayback):
     12
    1132017-12-12  Romain Bellessort  <romain.bellessort@crf.canon.fr>
    214
  • trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp

    r225470 r225785  
    985985{
    986986    if (userGestureRequiredForAudioStart()) {
    987         if (!processingUserGestureForMedia())
     987        if (!processingUserGestureForMedia() && !document()->isCapturing())
    988988            return false;
    989989        removeBehaviorRestriction(AudioContext::RequireUserGestureForAudioStartRestriction);
Note: See TracChangeset for help on using the changeset viewer.