https://bugs.webkit.org/show_bug.cgi?id=224400
<rdar://76450376>
Reviewed by Ryosuke Niwa.
Source/WebCore:
In r275668, I added null-checks for the AudioContext in AudioParam, now that it holds a WeakPtr to its
context. However, I missed a null-check in AudioParam::exponentialRampToValueAtTime(). This patch adds
the missing check.
Test: webaudio/AudioParam/audioparam-exponentialRampToValueAtTime-nocontext-crash.html
* Modules/webaudio/AudioParam.cpp:
LayoutTests:
Add layout test coverage.
* webaudio/AudioParam/audioparam-exponentialRampToValueAtTime-nocontext-crash-expected.txt: Added.
* webaudio/AudioParam/audioparam-exponentialRampToValueAtTime-nocontext-crash.html: Added.
Canonical link: https://commits.webkit.org/236375@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275804 268f45cc-cd09-0410-ab3c-d52691b4dbfc