Closed Bug 1406413 Opened 8 years ago Closed 8 years ago

TypeError: gBrowser.tabContainer is undefined every time the browser is closed (seen only in debug)

Categories

(Firefox :: Session Restore, enhancement, P3)

55 Branch
enhancement

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox57 --- wontfix
firefox60 --- fixed

People

(Reporter: mkaply, Assigned: florian)

Details

Attachments

(1 file)

When you close the browser in debug mode, you get this message on the console: avaScript error: chrome://browser/content/browser.js, line 8361: TypeError: gBrowser.tabContainer is undefined The error is actually at the first line in the function removeRestoreButton: http://searchfox.org/mozilla-central/source/browser/base/content/browser.js#8409 We should add a null check or figure out why this is failing,
Attached patch PatchSplinter Review
Here is where the error comes from: TypeError: gBrowser.tabContainer is undefined removeRestoreButton@chrome://browser/content/browser.js:8459:9 observe@chrome://browser/content/browser.js:8481:5 clear@resource:///modules/sessionstore/SessionStore.jsm:5107:7 ssi_onQuitApplication@resource:///modules/sessionstore/SessionStore.jsm:1730:7 ssi_observe@resource:///modules/sessionstore/SessionStore.jsm:788:9 This patch just prevents the notification from being fired during shutdown.
Attachment #8941492 - Flags: review?(mdeboer)
Assignee: nobody → florian
Status: NEW → ASSIGNED
Comment on attachment 8941492 [details] [diff] [review] Patch Review of attachment 8941492 [details] [diff] [review]: ----------------------------------------------------------------- LGTM!
Attachment #8941492 - Flags: review?(mdeboer) → review+
Component: General → Session Restore
Pushed by florian@queze.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/c1d281ef5482 avoid notifying browser windows that we are clearing the session during shutdown, r=mikedeboer.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: