I never thought I’d say this, but I want to write an extension to implement <bgsound>. The idea is that, once the extension is installed, it works just like in IE (as close as possible, at any rate) – including being correctly manipulated by script. What’s the best way to do it? Having it only work in Firefox 1.5 and above would be OK.
My initial idea is to use the new 1.5 interface for adding content CSS stylesheets to bind an XBL behaviour to the <bgsound> tag, which then implements the function using the nsISound interface to get simple playback capability. Is this reasonable? Am I going to run into security problems?
You are all welcome to speculate as to exactly why I would want to do this; I am neither going to confirm or deny any suggestions. :-)