Follow up: I found that execCommand("copy") is returning false inside
the content script. However, it is returning true if executed in the
background page. Executing it in the background page however would
not copy the selected text on the active web page. I'm guessing on
this, but I think this failed because the context for execCommand
changed to the background page, and not the active HTML page. Since
there was no selection on the background page nothing got copied. I
did figure out that I can take the selected text from the active HTML
page; put it into a textarea on the background page; select the
contents; and execute execCommand("copy") that this will copy the text
to the clipboard. However it has the side effect that all formatting
is lost. Copying with or without formatting was an option in my
extension, but for now I'm forcing the behavior in order to get
something working.
I hadn't modified my extension since 2/10 so I'm confident this is a
change in behavior with Chrome 6. Does anyone know if this is
expected, or if I should file a bug report?
Thanks.