Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2ef9bf886adc838c1e70bec46da48a5e33c9b7e8 https://github.com/WebKit/WebKit/commit/2ef9bf886adc838c1e70bec46da48a5e33c9b7e8 Author: Ryan Reno <rr...@apple.com> Date: 2024-08-22 (Thu, 22 Aug 2024)
Changed paths: M Source/WebCore/bindings/js/JSAudioWorkletGlobalScopeCustom.cpp Log Message: ----------- REGRESSION (280975@main) Null pointer deref crash in WebCore::AudioWorkletGlobalScope::createProcessor https://bugs.webkit.org/show_bug.cgi?id=278512 rdar://133250806 Reviewed by Chris Dumez. After 280975@main, Audio Worklet processor constructors are weak handles and may be garbage collected prematurely, especially in WK1. This can lead to null pointer deref crashes in WebAudio WPT when trying to construct a new Audio Worklet processor. This change adds the AudioWorkletGlobalScope as a WebCore opaque root in order to keep registered processor constructors alive via the isReachableFromOpaqueRoots mechanism. * Source/WebCore/bindings/js/JSAudioWorkletGlobalScopeCustom.cpp: (WebCore::JSAudioWorkletGlobalScope::visitAdditionalChildren): Canonical link: https://commits.webkit.org/282644@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes