Page MenuHomePhabricator

VisualEditor: Pressing tab while keeping the math inspector open throws TypeError: Cannot read property 'start' of null
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Go to Insert>Formula
3.Without closing the Math Inspector keep on pressing tab

Observed Result:
An error appears in the console:

Uncaught TypeError: Cannot read property 'start' of null

See the screenshot attached

Test Environment: https://en.wikipedia.org
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-04-25_at_2.29.34_PM.png (652×929 px, 185 KB)

Details

Reference
bz64451

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:23 AM
bzimport set Reference to bz64451.

Pressing tab actually blurs the surface, but blurring the surface doesn't clear the focusedNode highlighting, so I'm fixing that first.

Change 129851 merged by jenkins-bot:
Clear the focusedNode when the document is blurred

https://gerrit.wikimedia.org/r/129851

Verified the fix in production