Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 34520da7d0fa1404787d3060c7c0aa1d449ec335
      
https://github.com/WebKit/WebKit/commit/34520da7d0fa1404787d3060c7c0aa1d449ec335
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-26 (Sun, 26 Jul 2026)

  Changed paths:
    M Source/WebCore/Modules/webaudio/AudioWorkletGlobalScope.cpp

  Log Message:
  -----------
  registerProcessor() error messages report the processor name instead of the 
offending AudioParam name
https://bugs.webkit.org/show_bug.cgi?id=320266
rdar://183189781

Reviewed by Chris Dumez.

registerProcessor()'s parameterDescriptors validation errors (duplicate
name, defaultValue out of [minValue, maxValue] range) interpolated the
worklet processor's name into the message instead of the name of the
AudioParamDescriptor that actually failed validation, making it
impossible to tell which param was at fault when a processor declares
multiple
parameters.

Fix by using descriptor.name instead of name in the three
Exception messages.

* Source/WebCore/Modules/webaudio/AudioWorkletGlobalScope.cpp:
(WebCore::AudioWorkletGlobalScope::registerProcessor):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=DD2C4p8tk2&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE3OTQ4QG1haW4=&emid=64d69456-defb-4217-9bc8-a5e0799b757b&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to