This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21227 - Remove static keyword from MediaSource.isTypeSupported()
Summary: Remove static keyword from MediaSource.isTypeSupported()
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Adrian Bateman [MSFT]
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-08 18:07 UTC by Aaron Colwell (c)
Modified: 2013-03-11 15:34 UTC (History)
3 users (show)

See Also:


Attachments

Description Aaron Colwell (c) 2013-03-08 18:07:34 UTC
Static methods don't appear to be common in the web platform. A quick grep of WebKit IDL files show that only 3 classes have static methods.

I propose that the 'static' keyword be removed.
Comment 1 Adrian Bateman [MSFT] 2013-03-08 18:19:58 UTC
static is a relatively new addition to WebIDL and the platform to avoid singleton objects that were used in the past. It has been used in some newer APIs such as File API [1] and IndexedDB [2]. Adding methods to the prototype is common in JavaScript (e.g. the methods on Array).

Since it has already been added to the platform it seems appropriate to use it for its intended purpose. If we don't use new features because they are new they will never become common.

[1] http://www.w3.org/TR/FileAPI/#creating-revoking
[2] http://www.w3.org/TR/IndexedDB/
Comment 2 Aaron Colwell (c) 2013-03-08 18:24:44 UTC
Ok. I'm fine with keeping this then. I was just looking around WebKit for examples and found very few so thought I should bring this up especially since HTMLMediaElement.canPlayType() is not static.