Open
Bug 1091312
Opened 11 years ago
Updated 3 years ago
Throw correct exceptions on AudioBufferSourceNode start() and stop()
Categories
(Core :: Web Audio, defect, P3)
Tracking
()
ASSIGNED
People
(Reporter: padenot, Assigned: padenot)
Details
(Keywords: dev-doc-needed, Whiteboard: [spec])
Attachments
(2 files, 1 obsolete file)
|
6.60 KB,
patch
|
Details | Diff | Splinter Review | |
|
37 bytes,
text/x-review-board-request
|
ehsan.akhgari
:
review+
|
Details |
Spec change: https://github.com/WebAudio/web-audio-api/issues/353
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8513934 -
Flags: review?(ehsan.akhgari)
| Assignee | ||
Comment 2•11 years ago
|
||
/r/59 - Bug 1091312 - Throw InvalidAccessError when non-finite floats are passed to AudioBufferSourceNode.{start, stop}, or if offset is greater than the buffer length. r=ehsan
Pull down this commit:
hg pull review -r 25cae40162467a53f8ad9370722780386a0ba8c5
| Assignee | ||
Comment 3•11 years ago
|
||
Trying the new stuff, do the review here if you're not adventurous, heh.
Attachment #8513938 -
Flags: review?(ehsan.akhgari)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → padenot
Status: NEW → ASSIGNED
Comment 4•11 years ago
|
||
https://reviewboard.mozilla.org/r/59/#review29
::: dom/media/webaudio/AudioBufferSourceNode.cpp
(Diff revision 1)
> + (mBuffer && aOffset > mBuffer->Length() / mBuffer->SampleRate())) {
Nit: please wrap the greater than check in parentheses.
::: dom/media/webaudio/test/test_audioBufferSourceNodeParams.html
(Diff revision 1)
> + s.start(-1);
Did you mean to also add a check for Infinity, as the comment suggests?
::: dom/media/webaudio/test/test_audioBufferSourceNodeParams.html
(Diff revision 1)
> + [-1, buffer.duration + 1, NaN, Infinity].forEach(function(v) {
Please test -Infinity as well.
::: dom/media/webaudio/test/test_audioBufferSourceNodeParams.html
(Diff revision 1)
> + [-1, Infinity, NaN].forEach(function(v) {
Here too.
::: dom/media/webaudio/test/test_audioBufferSourceNodeParams.html
(Diff revision 1)
> + [-1, Infinity, NaN].forEach(function(v) {
And here.
::: dom/webidl/AudioBufferSourceNode.webidl
(Diff revision 1)
> - void start(optional double when = 0, optional double grainOffset = 0,
> + void start(optional unrestricted double when = 0, optional unrestricted double grainOffset = 0,
I assume you're going to change the spec accordingly too.
Comment 5•11 years ago
|
||
Updated•11 years ago
|
Attachment #8513938 -
Flags: review?(ehsan.akhgari)
Updated•11 years ago
|
Attachment #8513934 -
Flags: review?(ehsan.akhgari) → review+
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8513934 -
Attachment is obsolete: true
Attachment #8618502 -
Flags: review+
| Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•10 years ago
|
||
Paul - this is r+'d - what's blocking landing it? Thanks
Rank: 25
Flags: needinfo?(padenot)
Priority: -- → P2
Whiteboard: [spec]
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 10•8 years ago
|
||
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•