Bug 837638 - Don't set persistence = -1 on the data-reporting notification, since it's not transient anyway. r=gavin
authorDão Gottwald <dao@mozilla.com>
Thu, 07 Feb 2013 04:03:42 +0100
changeset 131002 f6a582534f9687f2030d869ae4fcbb5de32f355a
parent 131001 d2353a795fb77e12d3434be2931965c431dc810a
child 131003 67f1ba2a8cb9ae676d3c131beeefd1bfb20c2793
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs837638
milestone21.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 837638 - Don't set persistence = -1 on the data-reporting notification, since it's not transient anyway. r=gavin
browser/base/content/browser-data-submission-info-bar.js
--- a/browser/base/content/browser-data-submission-info-bar.js
+++ b/browser/base/content/browser-data-submission-info-bar.js
@@ -90,19 +90,16 @@ let gDataNotificationInfoBar = {
             request.onUserAccept("info-bar-dismissed");
           }
 
           Services.obs.notifyObservers(null, "datareporting:notify-data-policy:close", null);
         }
       }.bind(this)
     );
 
-    // Keep open until user closes it.
-    notification.persistence = -1;
-
     // Tell the notification request we have displayed the notification.
     request.onUserNotifyComplete();
   },
 
   _clearPolicyNotification: function () {
     let notification = this._getDataReportingNotification();
     if (notification) {
       notification.close();