It's is our current behavior, and this is also what Firefox does. This is more important than it sounds - it means that a plug-in must be instantiated when JS code accesses properties and methods of its owner element, e.g. with a call like plg.addEventListener(...).
Created attachment 51103 [details] proposed fix
Comment on attachment 51103 [details] proposed fix r=me
Committed revision 56198.