Bug 534412 and bug 543304 would benefit from having a JS component loaded dynamically as part of a chrome Mochitest. I wrote the original implementation for xpcshell tests a few years ago, and it's used in a few xpcshell tests now. I can do the port, but I'd like advice on which file to add the generic function to. Also, I'd like to think that when the chrome Mochitest unloads, it has the option of unregistering the component as well.
You need to log in before you can comment on or make changes to this bug.