Closed Bug 1458045 Opened 6 years ago Closed 8 months ago

Strange error message from exponentialRampToValueAtTime

Categories

(Core :: Web Audio, defect, P2)

57 Branch
defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- wontfix
firefox120 --- fixed

People

(Reporter: toy.raymond, Assigned: karlt)

References

()

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce:

In console:

c = new AudioContext()
g = new GainNode(c)
g.gain.exponentialRampToValueAtTime(-2, 5)


Actual results:

Error signaled:

SyntaxError: An invalid or illegal string was specified


Expected results:

I was expecting this to either work, or at least a different error message.

It's not illegal (anymore) to give an negative value for exponentialRampToValue().  There are some constraints, however in the spec: 
https://webaudio.github.io/web-audio-api/#dom-audioparam-exponentialramptovalueattime
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180503100146

I have managed to reproduce this issue on the latest FF release (59) and the latest Nightly build 61.0a1 (2018-05-03). 

The issue occurs regardless of the OS used. 

Based on the description and the tests executed, I will mark this bug as NEW.
Status: UNCONFIRMED → NEW
Component: Untriaged → Web Audio
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Rank: 18
Priority: -- → P2
Severity: normal → S3
Assignee: nobody → karlt
Blocks: 1611146
Pushed by ktomlinson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/52f0910d6e37
use V0 for exponentialRampToValueAtTime() curve when V0 and V1 have opposite signs or V0 is zero r=padenot
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42237 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1611146
Duplicate of this bug: 1862075
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: