execCommand("paste") should log an error when disallowed
https://bugs.webkit.org/show_bug.cgi?id=25486
Summary execCommand("paste") should log an error when disallowed
Eric Seidel (no email)
Reported 2009-04-30 11:59:37 PDT
execCommand("paste") should log an error when disallowed Right now we just silently fail. Which makes web author's lives harder than necessary. I've related bug 11335.
Attachments
Aryeh Gregor
Comment 1 2011-08-18 11:17:26 PDT
The current spec requires either throwing SECURITY_ERR, or treating it as unsupported (which if you look at the execCommand() definition means throwing NOT_SUPPORTED_ERR): http://aryeh.name/spec/editing/editing.html#the-paste-command Firefox 7.0a2 throws NS_ERROR_DOM_XPCONNECT_ACCESS_DENIED. If you think logging an error is a better idea than throwing, please explain why and I'll consider changing the spec.
Note You need to log in before you can comment on or make changes to this bug.