This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://bugzilla.mozilla.org/show_bug.cgi?id=906413 showcases a slice call on a Blob of size 4 of the sort: slice(0, Number.MAX_SIZE) on which on Fx returns a Blob of size 0, but only because of the 'long long' threshold being reached. This bug is to introduce further boundary checks on slice calls, disallowing a slice bigger than the original blob for example.
Additionally, the spec should use [Clamp] on long long arguments to slice.
Clarification: the spec already disallows end > size and the equivalent for start. This bug is to add [Clamp] to the IDL to ensure that a call of the sort slice(0, Number.MAX_SIZE) ends up being equivalent to slice(0, thisBlob.size)
http://dev.w3.org/2006/webapi/FileAPI/#blob uses [Clamp] in slice method IDL definition.