Bug 652657 - only show telemetry prompt if rights prompt isn't being shown r=gavin

This commit is contained in:
Taras Glek 2011-06-23 13:43:37 -07:00
Родитель 2f82c8476a
Коммит 168983829e
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -376,8 +376,13 @@ BrowserGlue.prototype = {
// Browser startup complete. All initial windows have opened.
_onBrowserStartup: function BG__onBrowserStartup() {
// Show about:rights notification, if needed.
if (this._shouldShowRights())
if (this._shouldShowRights()) {
this._showRightsNotification();
} else {
// Only show telemetry notification when about;rights notification is not shown.
this._showTelemetryNotification();
}
// Show update notification, if needed.
if (Services.prefs.prefHasUserValue("app.update.postupdate"))
@ -389,9 +394,6 @@ BrowserGlue.prototype = {
this._showPlacesLockedNotificationBox();
}
// Show telemetry notification, if needed.
this._showTelemetryNotification();
// If there are plugins installed that are outdated, and the user hasn't
// been warned about them yet, open the plugins update page.
if (Services.prefs.getBoolPref(PREF_PLUGINS_NOTIFYUSER))