Use CustomEvent instead of DataContainerEvent.

DataContainerEvent is going to be deprecated.
See: https://bugzilla.mozilla.org/show_bug.cgi?id=980134