Bug 163472

Summary: Setting HTMLMediaElement.volume to NaN or Inf should throw a TypeError
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, darin, eric.carlson, jer.noble, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2016-10-14 16:52:21 PDT
Setting HTMLMediaElement.volume to NaN or Inf should throw a TypeError:
- https://html.spec.whatwg.org/#dom-media-volume

This is because the attribute is of type double (not unrestricted double in the IDL).

Chrome and Firefox agree with the specification. WebKit throws an IndexSizeErr instead.
Comment 1 Chris Dumez 2016-10-14 16:57:35 PDT
Created attachment 291681 [details]
Patch
Comment 2 WebKit Commit Bot 2016-10-15 07:56:02 PDT
Comment on attachment 291681 [details]
Patch

Clearing flags on attachment: 291681

Committed r207375: <http://trac.webkit.org/changeset/207375>
Comment 3 WebKit Commit Bot 2016-10-15 07:56:06 PDT
All reviewed patches have been landed.  Closing bug.