Bug 1369214 - test_getProcess.html should explicitly require Services in its process script. r=poirot
MozReview-Commit-ID: BIjsqgIedxD
--- a/devtools/server/tests/mochitest/test_getProcess.html
+++ b/devtools/server/tests/mochitest/test_getProcess.html
@@ -111,16 +111,17 @@ function runTests() {
let actor = response.form;
is(actor, firstActor,
"Second call to getProcess with the same id returns the same form");
closeClient();
});
}
function processScript() {
+ Components.utils.import('resource://gre/modules/Services.jsm');
let listener = function () {
Services.obs.removeObserver(listener, "sdk:loader:destroy");
sendAsyncMessage("test:getProcess-destroy", null);
};
Services.obs.addObserver(listener, "sdk:loader:destroy");
}
function closeClient() {