Created attachment 561706 [details] [diff] [review]
I think that this test can just be removed.
So what happens here is that the onfoo setter looks at the object passed in, determines that it's not a function, and bails with NS_OK. So we're still not setting an event listener here, we're just not throwing anymore. This is consistent with how onfoo behaves on Nodes.