The JSC bindings generator should be smart enough to generate code for global named constructors. Currently those require custom code (via [CustomGetter] extended attribute). For e.g. in DOMWindow.idl: [CustomGetter] attribute HTMLOptionElementConstructorConstructor Option; [CustomGetter, Conditional=VIDEO] attribute HTMLAudioElementConstructorConstructor Audio;
Created attachment 201746 [details] Patch
Created attachment 201799 [details] Patch
The "Audio" global constructor will be automatically generated as well once we support [EnabledAtRuntime] extended attribute for global constructors (Bug 116147).
Any feedback on this patch?
Comment on attachment 201799 [details] Patch Looks correct, but JSC guys should take a look.
Comment on attachment 201799 [details] Patch r=me
Created attachment 202126 [details] Patch for landing
Comment on attachment 202126 [details] Patch for landing Clearing flags on attachment: 202126 Committed r150283: <http://trac.webkit.org/changeset/150283>
All reviewed patches have been landed. Closing bug.