Open
Bug 1500750
Opened 7 years ago
Updated 3 years ago
OscillatorNode's AudioScheduledSourceNode.start() does not throw a RangeError
Categories
(Core :: Web Audio, defect, P3)
Tracking
()
REOPENED
People
(Reporter: chrisguttandin, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
Steps to reproduce:
const audioContext = new AudioContext();
const audioBufferSourceNode = new AudioBufferSourceNode(audioContext);
try {
audioBufferSourceNode.start(-1);
} catch (err) {
console.log(err instanceof RangeError);
}
const constantSourceNode = new ConstantSourceNode(audioContext);
try {
constantSourceNode.start(-1);
} catch (err) {
console.log(err instanceof RangeError);
}
const oscillatorNode = new OscillatorNode(audioContext);
try {
oscillatorNode.start(-1);
} catch (err) {
console.log(err instanceof RangeError);
}
Actual results:
All calls to start of an AudioScheduledSourceNode with a negative value throw a DOMException. The same is true for calls to stop with a negative value.
Expected results:
Calls with a negative value should throw a RangeError.
https://webaudio.github.io/web-audio-api/#dom-audioscheduledsourcenode-start
https://webaudio.github.io/web-audio-api/#dom-audioscheduledsourcenode-stop
Comment 1•7 years ago
|
||
This should be fixed in 63 by https://hg.mozilla.org/mozilla-central/rev/c6efa2d9a32006f3d676dca81048ac5e30a4a4a4#l3.12
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•7 years ago
|
||
Sorry for filing a duplicate bug. I apparently searched for the wrong keywords.
I can confirm that the AudioBufferSourceNode and the ConstantSourceNode behave correctly in Firefox 64 but the OscillatorNode is still throwing a DOMException. The OscillatorNode is not mentioned in the other bug's description which is probably the reason why.
Should I report this on the thread of the other bug?
Comment 3•7 years ago
|
||
No harm in filing a duplicate bug, but sorry that I didn't check OscillatorNode. Thank /you/ for doing so.
I'll reopen this to track OscillatorNode. Mozilla's bug reports track symptoms until a patch is applied, after which the bug tracks the patch. We need a new report (this one) if the same symptoms remain after the patch.
Status: RESOLVED → REOPENED
Depends on: 1488242
Ever confirmed: true
Priority: -- → P3
Resolution: DUPLICATE → ---
Summary: AudioScheduledSourceNode does not throw a RangeError → OscillatorNode's AudioScheduledSourceNode.start() does not throw a RangeError
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → laetitianp022
Updated•5 years ago
|
Attachment #9128465 -
Attachment description: Bug 1500750 - Bug resolved. r?padenot → Bug 1500750 - Throw a RangeError instead of a NotSupportedError in OscillatorNode.start, to match the spec. r?padenot
Updated•5 years ago
|
Attachment #9136714 -
Attachment description: Bug 1500750 - Throws RangeErrors for negative start time, grouped audioscheduled related tests in the-audioscheduledsource-interface. r?padenot → Bug 1500750 - Throws a RangeError for negative start time, grouped audioscheduled related tests in the-audioscheduledsource-interface. r?padenot
Updated•5 years ago
|
Attachment #9136714 -
Attachment is obsolete: true
Comment 6•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:padenot, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: laetitianp022 → nobody
Flags: needinfo?(padenot)
Updated•3 years ago
|
Flags: needinfo?(padenot)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•