Element not defined exception in statusbar.js

RESOLVED WORKSFORME

Status

Firefox OS
Gaia::System
RESOLVED WORKSFORME
3 years ago
3 years ago

People

(Reporter: sfoster, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [systemsfe])

(Reporter)

Description

3 years ago
I saw this watching logcat when I opened a browser window in 2.1: 

TypeError: element is undefined statusbar.js:589

But it looks like master/2.2 should have the same issue. In statusbar's _updateMinimizedStatusBarWidth method, see https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/statusbar.js#L605

The next statement checks if element is not truthy, but the following statement unconditionally accesses its .getBoundingClientRect().width property.
I think this was probably solved by bug 1082667. Please re-open if you're still seeing this.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Depends on: 1082667
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.