I am using FF 3.5.3 on Windows Vista.
This is my (edited for brevity) bookmarklet:
javascript:(function(){ var text = window.content.getSelection().toString(); alert(text); })();
It works, but not on gmail.com. Probably due to dynamically generated content.
I know this workaround, but it only works for Firefox extensions.
source share