Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9babc122dc0298ebdc689b41ade1d81f9141b8f7
https://github.com/WebKit/WebKit/commit/9babc122dc0298ebdc689b41ade1d81f9141b8f7
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M Source/WebCore/Modules/webaudio/AudioNode.cpp
Log Message:
-----------
AudioNode::scriptExecutionContext() uses const_cast despite a const context()
overload existing
https://bugs.webkit.org/show_bug.cgi?id=320373
rdar://183338187
Reviewed by Eric Carlson.
Cast away constness on `this` to reach the non-const context() overload,
even though `const BaseAudioContext& context() const` exists and
ContextDestructionObserver::scriptExecutionContext() is itself const.
Use the const overload. The static_cast stays to disambiguate
ActiveDOMObject's non-virtual scriptExecutionContext() from EventTarget's
pure-virtual one; only the const_cast goes away. No behavior change.
* Source/WebCore/Modules/webaudio/AudioNode.cpp:
(WebCore::AudioNode::scriptExecutionContext const):
Canonical link: https://commits.webkit.org/317995@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications