[Webkit-unassigned] [Bug 250485] AudioWorkletProcessor fails to load when some parameter descriptors with minValue/maxValue are specified
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 20 13:57:24 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=250485
--- Comment #3 from Chris Dumez <cdumez at apple.com> ---
Likely due to the following logic in AudioWorkletGlobalScope::registerProcessor():
```
if (!parameterDescriptorsValue.isUndefined()) {
parameterDescriptors = convert<IDLSequence<IDLDictionary<AudioParamDescriptor>>>(*globalObject, parameterDescriptorsValue);
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
UNUSED_PARAM(parameterDescriptors);
HashSet<String> paramNames;
for (auto& descriptor : parameterDescriptors) {
auto addResult = paramNames.add(descriptor.name);
if (!addResult.isNewEntry)
return Exception { NotSupportedError, makeString("parameterDescriptors contain duplicate AudioParam name: ", name) };
if (descriptor.defaultValue < descriptor.minValue)
return Exception { InvalidStateError, makeString("AudioParamDescriptor with name '", name, "' has a defaultValue that is less than the minValue") };
if (descriptor.defaultValue > descriptor.maxValue)
return Exception { InvalidStateError, makeString("AudioParamDescriptor with name '", name, "' has a defaultValue that is greater than the maxValue") };
}
}
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230120/1fb7ac0d/attachment.htm>
More information about the webkit-unassigned
mailing list