Bug 464146 - about:rights notification sometimes not shown with session restore. r=gavin, ui-r=beltzner, a191b2=beltzner
authorJustin Dolske <dolske@mozilla.com>
Tue, 18 Nov 2008 23:09:33 -0800
changeset 21824 0cd41f5990807fb6ab52cb59ba3c8e8247281045
parent 21823 9a453249ca6cd7e745f099dc2ade994e455f8f25
child 21825 62f1b36e52c5ca4050b7625d736cd70e4d25f07a
child 21826 73bda326879976ca31d6a26aa41892db80136ca6
child 21835 a734d6d04d500909e815db4c5361e2f713dfa19e
push id3699
push userjdolske@mozilla.com
push dateWed, 19 Nov 2008 07:09:48 +0000
treeherdermozilla-central@0cd41f599080 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, beltzner
bugs464146
milestone1.9.1b2pre
Bug 464146 - about:rights notification sometimes not shown with session restore. r=gavin, ui-r=beltzner, a191b2=beltzner
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -428,17 +428,18 @@ BrowserGlue.prototype = {
                       }
                     }
                   ];
 
     // Set pref to indicate we've shown the notification.
     var currentVersion = this._prefs.getIntPref("browser.rights.version");
     this._prefs.setBoolPref("browser.rights." + currentVersion + ".shown", true);
 
-    notifyBox.appendNotification(notifyText, "about-rights", null, notifyBox.PRIORITY_INFO_LOW, buttons);
+    var box = notifyBox.appendNotification(notifyText, "about-rights", null, notifyBox.PRIORITY_INFO_LOW, buttons);
+    box.persistence = 3; // arbitrary number, just so bar sticks around for a bit
   },
 
   // returns the (cached) Sanitizer constructor
   get Sanitizer() 
   {
     if(typeof(Sanitizer) != "function") { // we should dynamically load the script
       Cc["@mozilla.org/moz/jssubscript-loader;1"].
       getService(Ci.mozIJSSubScriptLoader).