Open Bug 1446558 Opened 6 years ago Updated 2 years ago

js/xpconnect/tests/unit/test_defineModuleGetter.js inadvertently requires all services on Services.jsm to "work" in an xpcshell environment (also on android)

Categories

(Core :: XPConnect, enhancement, P2)

enhancement

Tracking

()

Tracking Status
firefox61 --- affected

People

(Reporter: Gijs, Unassigned)

References

Details

The combination of js/xpconnect/tests/unit/test_defineModuleGetter.js and bug 1446554 accidentally means that every single service exposed on Services.jsm needs to survive being instantiated without a profile, in an xpcshell environment.

If we want to test that, we should write a sane, contained test for this purpose in https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/tests , with reasonable error messages.

For js/xpconnect/tests/unit/test_defineModuleGetter.js, it would be better if we used a more innocuous (testing-only?) module to verify the behaviour of defineModuleGetter.
It seems like this is a bug with Assert.jsm more than it is with the test.
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.