Skip to content

api.AudioParam.cancelScheduledValues - Does not cancel in-progress curve events in Firefox #29029

@ahzvenol

Description

@ahzvenol

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

api.AudioParam.cancelScheduledValues is marked as fully supported in Firefox, but Firefox does not implement the spec change from March 2020 (WebAudio/web-audio-api#2071). This is confirmed by the still-open Firefox Bug 1752775.

The spec was updated to clarify that cancelScheduledValues should cancel in-progress curve events created by setValueCurveAtTime when the cancel time falls within the curve's duration. Firefox still follows the old behavior: it fails to cancel the curve event, which causes subsequent scheduling attempts to throw Uncaught DOMException: AudioParam.setValueAtTime: Can't add events during a curve event.

Firefox should be marked as partial support with a note explaining this limitation.

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

The compatibility data for Firefox should indicate partial support. It should include a note stating that Firefox does not cancel in-progress setValueCurveAtTime events as required by the spec.

Did you test this? If so, how?

  1. Open https://codepen.io/wemyss/pen/BamjNLW?editors=1011 in Firefox
  2. Click the button to execute the test sequence. This triggers a script that starts a curve event, attempts to cancel it shortly after, and then tries to schedule a new event.
  3. Wait and observe the console

Expected result: The curve event should be canceled, allowing the new event to be scheduled successfully. This behavior works correctly in Chrome and Safari.

Actual result in Firefox: The curve event is not canceled, causing the subsequent setValueAtTime call to throw:
Uncaught DOMException: AudioParam.setValueAtTime: Can't add events during a curve event

The same issue occurs in Firefox for Android.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIp3Medium priority – Community PRs encouraged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions