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)
Tracking
()
RESOLVED
FIXED
Firefox 60
People
(Reporter: mkaply, Assigned: florian)
Details
Attachments
(1 file)
|
1.63 KB,
patch
|
mikedeboer
:
review+
|
Details | Diff | Splinter Review |
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,
Updated•8 years ago
|
status-firefox57:
--- → wontfix
Priority: -- → P3
| Assignee | ||
Comment 1•8 years ago
|
||
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 | ||
Updated•8 years ago
|
Assignee: nobody → florian
Status: NEW → ASSIGNED
Comment 2•8 years ago
|
||
Comment on attachment 8941492 [details] [diff] [review]
Patch
Review of attachment 8941492 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM!
Attachment #8941492 -
Flags: review?(mdeboer) → review+
Updated•8 years ago
|
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.
Comment 4•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in
before you can comment on or make changes to this bug.
Description
•