Closed Bug 1084081 Opened 10 years ago Closed 10 years ago

Element not defined exception in statusbar.js

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sfoster, Unassigned)

References

Details

(Whiteboard: [systemsfe])

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
Closed: 10 years ago
Depends on: 1082667
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.