If you do something like: nsCOMPtr<nsIClipboardCommands> clipCmds = do_GetInterface(mWebBrowser); if(clipCmds) clipCmds->CopySelection(); while some text in a <textarea> or <input type="text"> is highlighted, the text will not be copied. is there another way to copy text from those elements? do I have to do something like getting the currently focused node, then seeing if it's an input box, and calling copy on that? I tried that too, and it didn't work, maybe I did it wrong...
