Bug 998809 - WidgetEvent::typeString is not always set correctly, r=masayuki