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

https://bugzilla.mozilla.org/show_bug.cgi?id=1090008
Same as previous comment