Bug 1369214 - test_getProcess.html should explicitly require Services in its process script. r=poirot draft
authorAndrew McCreight <continuation@gmail.com>
Wed, 31 May 2017 16:09:06 -0700
changeset 587405 d34ee11252f17e6a19f8b38aace626e08b8510d5
parent 587256 94906c37940c6b1c371dc7c22ed2098face96d8b
child 631253 7f37be8369c6ff71bef2b6ce70426fd437056571
push id61692
push userbmo:continuation@gmail.com
push dateWed, 31 May 2017 23:40:17 +0000
reviewerspoirot
bugs1369214
milestone55.0a1
Bug 1369214 - test_getProcess.html should explicitly require Services in its process script. r=poirot MozReview-Commit-ID: BIjsqgIedxD
devtools/server/tests/mochitest/test_getProcess.html
--- 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() {