Closed
Bug 1613833
Opened 4 years ago
Closed 4 years ago
PeriodicWave constructor does not allow zero-length real and imag
Categories
(Core :: Web Audio, defect, P3)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
81 Branch
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: koalab1999)
Details
Attachments
(3 files)
Consider this testcase:
var ctx = new AudioContext()
new PeriodicWave(ctx, { real: [], imag: [] })
In Firefox this throws. In Chrome it does not (though I don't know what the slots end up storing in that case; there's no obvious way to inspect them). Per spec it should not throw, I think, though the spec is confused enough around this stuff that who knows...
Is this a bug in Firefox or a bug in Chrome and the spec?
Flags: needinfo?(padenot)
Updated•4 years ago
|
Component: Audio/Video → Web Audio
Flags: needinfo?(padenot)
Priority: -- → P3
Comment 1•4 years ago
|
||
https://github.com/WebAudio/web-audio-api/pull/2168/files added some IndexSizeError
s for lengths less than 2.
Reporter | ||
Comment 2•4 years ago
|
||
OK. We should add tests for that... Ideally that would have happened as part of the spec change.
Updated•4 years ago
|
Severity: normal → S3
Updated•4 years ago
|
Assignee: nobody → koalab1999
Status: NEW → ASSIGNED
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/60d22caf219b Changed length condition to suit the spec. r=padenot https://hg.mozilla.org/integration/autoland/rev/2688c7fb493a Updated mochitest. r=padenot https://hg.mozilla.org/integration/autoland/rev/a93c24810dce Added wpt. r=padenot
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24828 for changes under testing/web-platform/tests
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/60d22caf219b
https://hg.mozilla.org/mozilla-central/rev/2688c7fb493a
https://hg.mozilla.org/mozilla-central/rev/a93c24810dce
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•