Bug 1766230 - Fix a couple of incorrect uses of Services.* properties in docshell tests. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D144552
This commit is contained in:
Mark Banner 2022-04-27 11:41:10 +00:00
parent 67d70ae7b7
commit d276554fa2
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
TestUtils: "resource://testing-common/TestUtils.jsm",
});
var dirSvc = Services.dirSvc;
var profileDir = do_get_profile();
const kSearchEngineID = "test_urifixup_search_engine";

View File

@ -8,7 +8,7 @@ function run_test() {
notifications++;
},
};
Services.os.addObserver(obs, "last-pb-context-exited");
Services.obs.addObserver(obs, "last-pb-context-exited");
run_test_in_child("../unit/test_pb_notification.js", function() {
Assert.equal(notifications, 1);