"Haven't started Firefox in a while" Refresh prompt shows up while running Firefox
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: verdi, Unassigned)
References
Details
Attachments
(1 file)
272.97 KB,
image/jpeg
|
Details |
My wife had been running Firefox 46.0.1 without restarting for more than two months when the "It looks like you haven't started Firefox in a while" refresh prompt showed up. She had not just restarted Firefox as evidenced by the pending update in the screenshot. I noticed that bug 1011978 seems very similar though the prompt dismissed with one click and she has not had the prompt show up a second time yet.
Updated•8 years ago
|
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Hmm, at first look this sure seems like this shouldn't happen... The bar is only triggered from one point -- _onFirstWindowLoaded() -- and that's only called from the browser-delayed-startup-finished observer. But the comments in bug 1011978 are relevant here, browser-delayed-startup-finished can fire multiple times (once per browser window opened), and so if something in _onFirstWindowLoaded() throws (and there's an increasing amount of code there), the observer never gets removed. The simple fix would be to do what bug 1011978 comment 11 pondered, which will hopefully avoid this. OTOH, if something is throwing, it means some portion of initialization won't finish, which could mean a bunch of stuff is uninitialized... This notification bar is just one of many possible symptoms of that happening. I think we should actually refactor these giant init-conglomeration functions to be more robust to such failings. For example, have a list (or registration API) for things that need to init, and loop over each in a try/catch block. That would contain failures to a particular subsystem, and we could even report that in telemetry for further investigation.
Updated•8 years ago
|
Updated•8 years ago
|
Comment 2•3 years ago
|
||
Not sure I remember correctly, but I think there were some recent changes regarding when this notification appears. Mike, have you come across a relevant bug by any chance?
Comment 3•3 years ago
|
||
Redirecting to mstriemer who is running point on infobars.
Comment 4•3 years ago
|
||
Implementation is at https://searchfox.org/mozilla-central/rev/4606c7974a68cab416c038acaedcae49eed93822/browser/components/BrowserGlue.jsm#1342-1344,1347-1348
The timestamp used for the comparison is not updated during use, so if the user doesn't restart Firefox within 60 days, the notification shows up.
I'm keeping this issue open given its clear description, but note that it has also been mentioned before at https://bugzilla.mozilla.org/show_bug.cgi?id=1054947#c11
Linking to bug 1095739 because that introduced this feature (and blame on the relevant code points to that bug).
Updated•3 years ago
|
Updated•3 years ago
|
Description
•