Open Bug 1483960 Opened 6 years ago Updated 2 years ago

TypeError: singletons is null" {file: "resource://gre/modules/ActorManagerChild.jsm" line: 167}

Categories

(Toolkit :: Async Tooling, defect, P2)

63 Branch
defect

Tracking

()

Tracking Status
firefox63 --- affected

People

(Reporter: robwu, Unassigned)

References

Details

Using ExtensionTestUtils.loadContentPage in a xpcshell test triggers "TypeError: singletons is null" in ActorManagerChild.jsm

To reproduce, create the following test (and register it in xpcshell-common.ini):
toolkit/components/extensions/test/xpcshell/test_ext_repro.js

add_task(async function() {
  let contentPage = await ExtensionTestUtils.loadContentPage("data:text/html;charset=utf-8,xxx");
  await contentPage.close();
});



Then run it to see the error at the end of the log:

$ mach test toolkit/components/extensions/test/xpcshell/test_ext_repro.js --verbose

...
PID 64219 | JavaScript error: resource://gre/modules/ActorManagerChild.jsm, line 167: TypeError: singletons is null
"CONSOLE_MESSAGE: (error) [JavaScript Error: "TypeError: singletons is null" {file: "resource://gre/modules/ActorManagerChild.jsm" line: 167}]"
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.