Bug 25486
Summary: | execCommand("paste") should log an error when disallowed | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ayg |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
Bug Depends on: | 11335 | ||
Bug Blocks: |
Eric Seidel (no email)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Aryeh Gregor
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.