<?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>12243</bug_id>
          
          <creation_ts>2007-01-13 02:55:05 -0800</creation_ts>
          <short_desc>FCKeditor: Paste buttons are always disabled</short_desc>
          <delta_ts>2008-01-30 06:57:16 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11335</dup_id>
          
          <bug_file_loc>http://www.fckeditor.net/nightly/browsers_test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9915</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>justin.garcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35227</commentid>
    <comment_count>0</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-01-13 02:55:05 -0800</bug_when>
    <thetext>The paste (Normal Paste, Paste as Plain Text and Paste from Word) buttons never get enabled in the toolbar or in the context menu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10032</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-05-14 15:28:37 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 11335 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7855</commentid>
    <comment_count>2</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-06-12 04:19:33 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; 
&gt; *** This bug has been marked as a duplicate of 11335 ***
&gt; 

Justin, this bug seams to be related to queryCommandEnabled(&apos;Paste&apos;), not to execCommand(&apos;Paste&apos;).

The &apos;Paste&apos; command is one of commands defined in the execCommand &quot;standards&quot;. So, it is extensively adopted. Here we have many things to think about. I&apos;ll try to give some justifications to make queryCommandEnabled work properly in this case, reflecting the Firefox behavior.

Even if WebKit decides that the execCommand(&apos;Paste&apos;) will never paste user&apos;s data, for security reasons (even if the user wanted that), queryCommandEnabled(&apos;Paste&apos;) is quite useful for us to understand that there is data available in the clipboard. So, it would be ok if queryCommandEnabled(&apos;Paste&apos;) returns &quot;true&quot; and execCommand(&apos;Paste&apos;) returns &quot;false&quot;.

In FCKeditor, this is important so we can enable the interface buttons for pasting (using queryCommandEnabled). If we try to paste and execCommand returns false, we display a dialog to the end user, asking her to paste in that dialog by using the keyboard shortcuts. This is the current behavior with Firefox, and it would be wonderful to have it working in the same way with Safari.

I&apos;m adding a TC to it, which shows the Safari X Firefox difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7850</commentid>
    <comment_count>3</comment_count>
      <attachid>14977</attachid>
    <who name="">webkit</who>
    <bug_when>2007-06-12 04:20:37 -0700</bug_when>
    <thetext>Created attachment 14977
TC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7648</commentid>
    <comment_count>4</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-06-13 14:20:23 -0700</bug_when>
    <thetext>I have a fix for this that Geoff has reviewed.  I&apos;ll be checking it in soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62001</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-22 11:32:52 -0800</bug_when>
    <thetext>Just curious whatever happened to Justin&apos;s fix... did it get checked in?  The test case still fails on TOT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68758</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2008-01-29 19:58:54 -0800</bug_when>
    <thetext>This *is* a dupe of 11335 as far as I can tell.  The test case outputs false for queryCommandEnabled(&apos;Paste&apos;) because it *is* disabled, because of the security concerns mentioned in 11335.  Frederico, if I&apos;ve got this wrong, please reopen.

*** This bug has been marked as a duplicate of 11335 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68800</commentid>
    <comment_count>7</comment_count>
    <who name="">webkit</who>
    <bug_when>2008-01-30 06:57:16 -0800</bug_when>
    <thetext>In theory, the current behavior is correct. In practice, it is a problem for us, as there is now way for us to simply know that there is data available in the clipboard (see comment #2). So now it is up to you guys (even if I can predict the way you are going to take with it).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14977</attachid>
            <date>2007-06-12 04:20:37 -0700</date>
            <delta_ts>2007-06-12 04:20:37 -0700</delta_ts>
            <desc>TC</desc>
            <filename>paste.html</filename>
            <type>text/html</type>
            <size>562</size>
            <attacher>webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPg0KPGhl
YWQ+DQoJPHRpdGxlPlNhZmFyaSBCdWcgVEM8L3RpdGxlPg0KCTxzY3JpcHQgdHlwZT0idGV4dC9q
YXZhc2NyaXB0Ij4NCg0Kd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkNCnsNCglkb2N1bWVudC5k
ZXNpZ25Nb2RlID0gJ29uJyA7DQoJZG9jdW1lbnQuYm9keS5jb250ZW50RWRpdGFibGUgPSB0cnVl
IDsNCg0KCWFsZXJ0KCBkb2N1bWVudC5xdWVyeUNvbW1hbmRFbmFibGVkKCAnUGFzdGUnICkgKSA7
DQp9DQoNCg0KCTwvc2NyaXB0Pg0KPC9oZWFkPg0KPGJvZHk+DQoJPHA+DQoJCUlmIHlvdSBoYXZl
IGRhdGEgaW4gdGhlIGNsaXBib2FyZCwgYW4gYWxlcnQgd2l0aCAiPHN0cm9uZz50cnVlPC9zdHJv
bmc+IiBzaG91bGQgYmUgZGlzcGxheWVkLjwvcD4NCjwvYm9keT4NCjwvaHRtbD4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>