Bug 1370733 - Add an explicit import of Services.jsm to window_browser_drop.xul. r=Gijs
authorAndrew McCreight <continuation@gmail.com>
Tue, 06 Jun 2017 16:09:54 -0700
changeset 410952 2135a8d8bed282a2982703828c503b334653ab2b
parent 410951 24861f3cb85f42d78c64f3f941ba6da02700d6dc
child 410953 14d24ce5d4aafa57ca7568b4a70a2c47c6569dc7
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1370733
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1370733 - Add an explicit import of Services.jsm to window_browser_drop.xul. r=Gijs MozReview-Commit-ID: J2jZM5hnInK
toolkit/content/tests/chrome/window_browser_drop.xul
--- a/toolkit/content/tests/chrome/window_browser_drop.xul
+++ b/toolkit/content/tests/chrome/window_browser_drop.xul
@@ -14,16 +14,17 @@
 
 Components.utils.import("resource://testing-common/ContentTask.jsm");
 
 function dropOnRemoteBrowserAsync(browser, data, shouldExpectStateChange) {
   ContentTask.setTestScope(window); // Need this so is/isnot/ok are available inside the contenttask
   return ContentTask.spawn(browser, {data, shouldExpectStateChange}, async function({data, shouldExpectStateChange}) {
     let { interfaces: Ci, utils: Cu } = Components;
     Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+    Cu.import("resource://gre/modules/Services.jsm");
 
     if (!content.document.documentElement) {
       // Wait until the testing document gets loaded.
       await new Promise(resolve => {
         let onload = function() {
           content.window.removeEventListener("load", onload);
           resolve();
         };