<?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>54254</bug_id>
          
          <creation_ts>2011-02-10 15:54:29 -0800</creation_ts>
          <short_desc>webkit2 pages gobble up cmd-I as an editing command in some cases where it shouldn&apos;t</short_desc>
          <delta_ts>2011-06-18 12:41:18 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alice Liu">alice.barraclough</reporter>
          <assigned_to name="Alice Liu">alice.barraclough</assigned_to>
          <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>349468</commentid>
    <comment_count>0</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-10 15:54:29 -0800</bug_when>
    <thetext>In WebKit, [WebHTMLView _handleStyleKeyEquivalent] returned early if [WebHTMLView _canEdit] was false.  We&apos;re missing this early return case in WebKit2, in [WKView _handleStyleKeyEquivalent]

[WebHTMLView _canEdit] boils down to checking if the current selection is in an editable region.

&lt;rdar://problem/8980859&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349470</commentid>
    <comment_count>1</comment_count>
      <attachid>82065</attachid>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-10 15:57:25 -0800</bug_when>
    <thetext>Created attachment 82065
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349474</commentid>
    <comment_count>2</comment_count>
      <attachid>82065</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2011-02-10 16:00:43 -0800</bug_when>
    <thetext>Comment on attachment 82065
patch

Looks good to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349550</commentid>
    <comment_count>3</comment_count>
      <attachid>82065</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-02-10 18:06:45 -0800</bug_when>
    <thetext>Comment on attachment 82065
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=82065&amp;action=review

&gt; Source/WebKit2/UIProcess/API/mac/WKView.mm:992
&gt; +    if (!_data-&gt;_page-&gt;selectionState().isContentEditable)

I think that longer term we might want this only if content is “richly” editable. No reason to enable these inside, say, an &lt;input type=text&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423180</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-06-18 12:41:18 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/78288</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82065</attachid>
            <date>2011-02-10 15:57:25 -0800</date>
            <delta_ts>2011-02-10 18:06:45 -0800</delta_ts>
            <desc>patch</desc>
            <filename>cmdIbug.txt</filename>
            <type>text/plain</type>
            <size>1229</size>
            <attacher name="Alice Liu">alice.barraclough</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDc4Mjc5KQorKysg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u
ZwogCiAtIChCT09MKV9oYW5kbGVTdHlsZUtleUVxdWl2YWxlbnQ6KE5TRXZlbnQgKilldmVudAog
eworICAgIGlmICghX2RhdGEtPl9wYWdlLT5zZWxlY3Rpb25TdGF0ZSgpLmlzQ29udGVudEVkaXRh
YmxlKQorICAgICAgICByZXR1cm4gTk87CisKICAgICBpZiAoKFtldmVudCBtb2RpZmllckZsYWdz
XSAmIE5TRGV2aWNlSW5kZXBlbmRlbnRNb2RpZmllckZsYWdzTWFzaykgIT0gTlNDb21tYW5kS2V5
TWFzaykKICAgICAgICAgcmV0dXJuIE5POwogICAgIAo=
</data>
<flag name="review"
          id="73703"
          type_id="1"
          status="+"
          setter="adele"
    />
          </attachment>
      

    </bug>

</bugzilla>