Either the code should be removed, or fixed to work. If normal event is enough, perhaps the event could be dispatched using nsContentUtils::DispatchChromeEvent. If the DataContainerEvent is really needed, some manual "dispatch to chrome event handler" is needed. It is not very clear why and what the code is trying to do. One thing to check is that the event is dispatched at safe time.
Code's all gone now!