зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1311739 - Silence `serverURL` pref warnings in push tests. r=dragana
MozReview-Commit-ID: 9Peorbb5pFS --HG-- extra : rebase_source : b1050f209f8edbbf5aefd5cac91a94ee56de1620
This commit is contained in:
Родитель
d1bf3d09e9
Коммит
3546f5ed59
|
@ -492,6 +492,7 @@ this.PushService = {
|
|||
|
||||
this._setState(PUSH_SERVICE_ACTIVATING);
|
||||
|
||||
prefs.observe("serverURL", this);
|
||||
Services.obs.addObserver(this, "quit-application", false);
|
||||
|
||||
if (options.serverURI) {
|
||||
|
@ -503,8 +504,6 @@ this.PushService = {
|
|||
} else {
|
||||
// This is only used for testing. Different tests require connecting to
|
||||
// slightly different URLs.
|
||||
prefs.observe("serverURL", this);
|
||||
|
||||
this._stateChangeProcessEnqueue(_ =>
|
||||
this._changeServerURL(prefs.get("serverURL"), STARTING_SERVICE_EVENT));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче