I am working on a simple Firefox Extension and I want to get the selected text. I tried this:
var WordCount = { /* ... */ changeSelected: function() {
This works in firefox javascripting, so should be OK
window.getSelection().toString();
My guess is that document.commandDispatcher.focusedWindow fails