Port do_load_module from xpcshell's head.js to Mochitest

NEW
Unassigned

Status

Testing
Mochitest
8 years ago
8 years ago

People

(Reporter: WeirdAl, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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.