Closed Bug 1866870 Opened 2 years ago Closed 2 years ago

window.gBrowser is undefined for about pages

Categories

(Firefox Graveyard :: Shopping, defect)

defect

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

Details

Attachments

(1 file)

window.gBrowser is undefined for about: pages and throwing the following error:

JavaScript error: resource:///actors/ShoppingSidebarParent.sys.mjs, line 172: TypeError: window.gBrowser is undefined

Assignee: nobody → fchasen
Status: NEW → ASSIGNED

Checks if gBrowser is available in updateSidebarVisibilityForWindow to prevent errors when it is undefined (like on about:config).

Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da3cd569520a Check if gBrowser is available before updating Shopping Sidebar visibility. r=shopping-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: