<?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>128084</bug_id>
          
          <creation_ts>2014-02-02 15:07:44 -0800</creation_ts>
          <short_desc>WK2: Selection in non editable content is not cleared when navigating to a different page</short_desc>
          <delta_ts>2014-02-02 15:41:31 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</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="Enrica Casucci">enrica</reporter>
          <assigned_to name="Enrica Casucci">enrica</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>974835</commentid>
    <comment_count>0</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2014-02-02 15:07:44 -0800</bug_when>
    <thetext>We need to make sure the selection code knows that we are resigning first responder.

&lt;rdar://problem/15966166&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974838</commentid>
    <comment_count>1</comment_count>
      <attachid>222941</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2014-02-02 15:11:31 -0800</bug_when>
    <thetext>Created attachment 222941
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974839</commentid>
    <comment_count>2</comment_count>
      <attachid>222941</attachid>
    <who name="">mitz</who>
    <bug_when>2014-02-02 15:24:05 -0800</bug_when>
    <thetext>Comment on attachment 222941
Patch

Conceptually it seems wrong to do any work in our override of resignFirstResponder if the superclass implementation is going to return NO. Should we call super first and bail out if it returned NO?

This is not new to this patch, however, so r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974840</commentid>
    <comment_count>3</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2014-02-02 15:35:44 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 222941 [details])
&gt; Conceptually it seems wrong to do any work in our override of resignFirstResponder if the superclass implementation is going to return NO. Should we call super first and bail out if it returned NO?
&gt; 
&gt; This is not new to this patch, however, so r=me.

Thanks for the review!
You are probably correct about calling the super class first. I checked the implementation in UIWebDocumentview and there are tasks performed before and other performed after calling [super resignFirstResponder] but no checks are performed on the return value.
I will leave it like this for now, but I&apos;ll add a comment before landing to remind me to do further investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974841</commentid>
    <comment_count>4</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2014-02-02 15:41:31 -0800</bug_when>
    <thetext>Committed revision 163273.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>222941</attachid>
            <date>2014-02-02 15:11:31 -0800</date>
            <delta_ts>2014-02-02 15:24:05 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>cleanupselection.txt</filename>
            <type>text/plain</type>
            <size>1306</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2MzI3MikKKysr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FQ
SS9pb3MvV0tJbnRlcmFjdGlvblZpZXcubW0JKHJldmlzaW9uIDE2MzI2OSkKKysrIFNvdXJjZS9X
ZWJLaXQyL1VJUHJvY2Vzcy9BUEkvaW9zL1dLSW50ZXJhY3Rpb25WaWV3Lm1tCSh3b3JraW5nIGNv
cHkpCkBAIC0yNjgsNiArMjY4LDggQEAgLSAoQk9PTClyZXNpZ25GaXJzdFJlc3BvbmRlcgogewog
ICAgIF9wYWdlLT5ibHVyQXNzaXN0ZWROb2RlKCk7CiAgICAgW3NlbGYgX2NhbmNlbEludGVyYWN0
aW9uXTsKKyAgICBbX3dlYlNlbGVjdGlvbkFzc2lzdGFudCByZXNpZ25lZEZpcnN0UmVzcG9uZGVy
XTsKKwogICAgIHJldHVybiBbc3VwZXIgcmVzaWduRmlyc3RSZXNwb25kZXJdOwogfQogCg==
</data>
<flag name="review"
          id="246961"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>