Bug 163472 - Setting HTMLMediaElement.volume to NaN or Inf should throw a TypeError
Summary: Setting HTMLMediaElement.volume to NaN or Inf should throw a TypeError
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-10-14 16:52 PDT by Chris Dumez
Modified: 2016-10-15 07:56 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.70 KB, patch)
2016-10-14 16:57 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.