author | Henrik Skupin <mail@hskupin.info> |
Tue, 01 Apr 2014 08:35:32 +0200 | |
changeset 194981 | ecda58bb90a7e21f28a8aabbc64931ccb9728d37 |
parent 194980 | ba93b2f34a3f37931e5042f31d4cf8eb61bbf956 |
child 194982 | 05a2d06d232fb63503b964d3f678ab74f8903c9d |
push id | 3624 |
push user | asasaki@mozilla.com |
push date | Mon, 09 Jun 2014 21:49:01 +0000 |
treeherder | mozilla-beta@b1a5da15899a [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jgriffin |
bugs | 989045 |
milestone | 31.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
|
--- a/services/sync/tps/extensions/tps/resource/tps.jsm +++ b/services/sync/tps/extensions/tps/resource/tps.jsm @@ -93,16 +93,20 @@ let TPS = { _init: function TPS__init() { // Check if Firefox Accounts is enabled let service = Cc["@mozilla.org/weave/service;1"] .getService(Components.interfaces.nsISupports) .wrappedJSObject; this.fxaccounts_enabled = service.fxAccountsEnabled; + OBSERVER_TOPICS.forEach(function (aTopic) { + Services.obs.addObserver(this, aTopic, true); + }, this); + // Import the appropriate authentication module if (this.fxaccounts_enabled) { Cu.import("resource://tps/auth/fxaccounts.jsm", module); } else { Cu.import("resource://tps/auth/sync.jsm", module); } }, @@ -588,20 +592,16 @@ let TPS = { /** * Executes a single test phase. * * This is called by RunTestPhase() after the environment is validated. */ _executeTestPhase: function _executeTestPhase(file, phase, settings) { try { - OBSERVER_TOPICS.forEach(function(topic) { - Services.obs.addObserver(this, topic, true); - }, this); - // parse the test file Services.scriptloader.loadSubScript(file, this); this._currentPhase = phase; let this_phase = this._phaselist["phase" + this._currentPhase]; if (this_phase == undefined) { this.DumpError("invalid phase " + this._currentPhase); return;