⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267413 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 9:29:35 AM (6 years ago)
Author:
Chris Dumez
Message:

webaudio/AudioParam/audioparam-setTarget-timeConstant-0.html is crashing
https://bugs.webkit.org/show_bug.cgi?id=216824

Reviewed by Darin Adler.

Source/WebCore:

If the time constant pass to AudioParam.setTargetAtTime() is 0, then insert a SetValue event in
the timeline instead of a SetTarget one, causing us to instantly jump to the target value. This
matches the Blink behavior.

No new tests, unskipped existing test.

  • Modules/webaudio/AudioParamTimeline.cpp:

(WebCore::AudioParamTimeline::setTargetAtTime):

LayoutTests:

Unskip test that is passing and no longer crashing.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267406 r267413  
     12020-09-22  Chris Dumez  <cdumez@apple.com>
     2
     3        webaudio/AudioParam/audioparam-setTarget-timeConstant-0.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=216824
     5
     6        Reviewed by Darin Adler.
     7
     8        Unskip test that is passing and no longer crashing.
     9
     10        * TestExpectations:
     11
    1122020-09-22  Lauro Moura  <lmoura@igalia.com>
    213
  • trunk/LayoutTests/TestExpectations

    r267384 r267413  
    335335# This WebAudio test is crashing in debug since its import from Blink.
    336336[ Debug ] webaudio/AudioBufferSource/audiobuffersource-playbackrate.html [ Crash ]
    337 [ Debug ] webaudio/AudioParam/audioparam-setTarget-timeConstant-0.html [ Crash ]
    338337
    339338webkit.org/b/176929 imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/ready-states/autoplay-with-slow-text-tracks.html [ Pass Failure ]
  • trunk/Source/WebCore/ChangeLog

    r267411 r267413  
     12020-09-22  Chris Dumez  <cdumez@apple.com>
     2
     3        webaudio/AudioParam/audioparam-setTarget-timeConstant-0.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=216824
     5
     6        Reviewed by Darin Adler.
     7
     8        If the time constant pass to AudioParam.setTargetAtTime() is 0, then insert a SetValue event in
     9        the timeline instead of a SetTarget one, causing us to instantly jump to the target value. This
     10        matches the Blink behavior.
     11
     12        No new tests, unskipped existing test.
     13
     14        * Modules/webaudio/AudioParamTimeline.cpp:
     15        (WebCore::AudioParamTimeline::setTargetAtTime):
     16
    1172020-09-22  Brian Burg  <bburg@apple.com>
    218
  • trunk/Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp

    r267388 r267413  
    9595{
    9696    auto locker = holdLock(m_eventsMutex);
     97    // If timeConstant is 0, we instantly jump to the target value, so insert a SetValueEvent instead of SetTargetEvent.
     98    if (!timeConstant)
     99        return insertEvent(ParamEvent::createSetValueEvent(target, time));
    97100    return insertEvent(ParamEvent::createSetTargetEvent(target, time, timeConstant));
    98101}
Note: See TracChangeset for help on using the changeset viewer.