Daniel Matejka <[EMAIL PROTECTED]> wrote (reposted with permission): > > [...] > > You should see the things he's doing in script. Accessing > nsIEventQueueService, and pushing and popping new event queues. And > running little event loops. I think whoever accidentally failed to make > those methods unscriptable should immediately go drink ten tasty > margaritas and say a few hail Marys. Is this something we want to do in > script? It just feels terribly out of place; this should be in assembly > or something.
Woohoo -- you owe me ten margaritas! It wasn't actually just a failure to make it unscriptable, I specifically converted those interfaces to IDL some time back in order to make them accessible to JS so that the LDAP datasource could be written in JS. The reason this was necessary is that the datasource needs to use nsISupports proxies for threadcrossing stuff, and creating a proxy object requires passing in an event queue. <http://bugzilla.mozilla.org/show_bug.cgi?id=61692> has the details. > Is it not dangerous and weird? Isn't event queue code something across > the looking glass from JS? Why this is necessarily so -- is there some problem more specific than "it just feels wrong?" Dan
