Bug 25486 - execCommand("paste") should log an error when disallowed
Summary: execCommand("paste") should log an error when disallowed
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 11335
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-30 11:59 PDT by Eric Seidel (no email)
Modified: 2011-08-18 11:17 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 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.
Comment 1 Aryeh Gregor 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.