<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25486</bug_id>
          
          <creation_ts>2009-04-30 11:59:37 -0700</creation_ts>
          <short_desc>execCommand(&quot;paste&quot;) should log an error when disallowed</short_desc>
          <delta_ts>2011-08-18 11:17:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>11335</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ayg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119492</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-04-30 11:59:37 -0700</bug_when>
    <thetext>execCommand(&quot;paste&quot;) should log an error when disallowed

Right now we just silently fail.  Which makes web author&apos;s lives harder than necessary.

I&apos;ve related bug 11335.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453165</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-18 11:17:26 -0700</bug_when>
    <thetext>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&apos;ll consider changing the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>