Bug 1090008 - [Text Selection]Refactor the TextDialog DOM event 

https://bugzilla.mozilla.org/show_bug.cgi?id=1090008
I would suggest to rename to onSelecitonStateChanged