<?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>110004</bug_id>
          
          <creation_ts>2013-02-15 23:39:21 -0800</creation_ts>
          <short_desc>Selection doesn&apos;t change when clicked on an image element</short_desc>
          <delta_ts>2019-02-06 21:04:39 -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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>nvineeth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aneesh.raj.25</cc>
    
    <cc>ap</cc>
    
    <cc>enrica</cc>
    
    <cc>jesus</cc>
    
    <cc>leviw</cc>
    
    <cc>rniwa</cc>
    
    <cc>shinyak</cc>
    
    <cc>syoichi</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>834652</commentid>
    <comment_count>0</comment_count>
    <who name="">nvineeth</who>
    <bug_when>2013-02-15 23:39:21 -0800</bug_when>
    <thetext>document.onselectionchange is not fired when we click on an img.
I have attached simple html page using which this is reproducible. 
Clicking anywhere in the &lt;p&gt; tag results in onselectionchange being called, but this not fired when clicked on the img.
Verified on Chrome 24 on Windows 7 and OSx 10.7 as well.
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834654</commentid>
    <comment_count>1</comment_count>
      <attachid>188696</attachid>
    <who name="">nvineeth</who>
    <bug_when>2013-02-15 23:41:39 -0800</bug_when>
    <thetext>Created attachment 188696
test html page to reproduce the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835402</commentid>
    <comment_count>2</comment_count>
    <who name="Aneesh">aneesh.raj.25</who>
    <bug_when>2013-02-18 05:55:40 -0800</bug_when>
    <thetext>Returning &apos;true&apos; from HTMLImageElement::CanStartSelection() will fix this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835404</commentid>
    <comment_count>3</comment_count>
      <attachid>188866</attachid>
    <who name="Aneesh">aneesh.raj.25</who>
    <bug_when>2013-02-18 05:57:40 -0800</bug_when>
    <thetext>Created attachment 188866
Patch for HTMLImageElement.cpp

Please review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835621</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-02-18 10:48:51 -0800</bug_when>
    <thetext>This isn&apos;t about selectionchange event not being fired. It&apos;s just that WebKit doesn&apos;t move selection when clicked on an image element.

Given that this is also the behavior observed on Firefox and native applications like TextEdit, I don&apos;t think we should change our behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835622</commentid>
    <comment_count>5</comment_count>
      <attachid>188866</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-02-18 10:50:20 -0800</bug_when>
    <thetext>Comment on attachment 188866
Patch for HTMLImageElement.cpp

r- because the current behavior is desirable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836815</commentid>
    <comment_count>6</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2013-02-19 15:05:35 -0800</bug_when>
    <thetext>It looks like this is an invalid bug report.

FWIW, I get the same behavior in Firefox as I do in WebKit, which makes me think that the existing behavior is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503340</commentid>
    <comment_count>7</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:19:14 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503622</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-02-06 21:04:39 -0800</bug_when>
    <thetext>Another bug which belongs to UI Events.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>188696</attachid>
            <date>2013-02-15 23:41:39 -0800</date>
            <delta_ts>2013-02-15 23:41:39 -0800</delta_ts>
            <desc>test html page to reproduce the problem.</desc>
            <filename>onSelectionChange.html.zip</filename>
            <type>application/zip</type>
            <size>532</size>
            <attacher>nvineeth</attacher>
            
              <data encoding="base64">UEsDBBQACAAIAIVmUEIAAAAAAAAAAAAAAAAWABAAb25TZWxlY3Rpb25DaGFuZ2UuaHRtbFVYDAAu
Nx9RojMfUfUBFAB9kk1OwzAQhfc5xTSrViqxygraNBLqhgUSCw5QOc4ksep4LHvSUCHujtOmgIqE
N+Of976xn5zPKlJ8cggtd6ZI8mtBWcXCmg0WQBbe0KBiHWeqlbZBYAwMubgokjworx0XScT1HVrO
yIarZXJsoe7teWO+gI8E4lBRRQYzQ808jexw06VKF5uz8Cj9eBgZg7YVDVmD/H2l+STSNcxnUbUA
j9x7u/nb46fBGtLliMxKGfC1rgNyxHwmubg+JRdTCiVVp1hcATuj1UHbBqQ9DS16BG2BWx3ASS9j
29AbDpdNhNsAlDSmlOqQwTMNeES/BHUF0sWiuwZKNDRARRjAEk/QkXmbzi9gLly84egOXm3Tltmt
heidIVllgz7oDistM/KNGFduXAlFXRfDEdz2XSlWYvUodiR5T/X+yXdhrC86HkobreHYiNX9g3u/
+1eTOdukYgxvSk1cftQXUEsHCFopXZlaAQAAaQIAAFBLAQIVAxQACAAIAIVmUEJaKV2ZWgEAAGkC
AAAWAAwAAAAAAAAAAECkgQAAAABvblNlbGVjdGlvbkNoYW5nZS5odG1sVVgIAC43H1GiMx9RUEsF
BgAAAAABAAEAUAAAAK4BAAAAAA==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>188866</attachid>
            <date>2013-02-18 05:57:40 -0800</date>
            <delta_ts>2013-02-18 10:50:20 -0800</delta_ts>
            <desc>Patch for HTMLImageElement.cpp</desc>
            <filename>HTMLImageElement.patch</filename>
            <type>text/plain</type>
            <size>389</size>
            <attacher name="Aneesh">aneesh.raj.25</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvaHRtbC9IVE1MSW1hZ2VFbGVtZW50LmNwcA0KPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0t
IFdlYkNvcmUvaHRtbC9IVE1MSW1hZ2VFbGVtZW50LmNwcAkocmV2aXNpb24gMTM5NTQ4KQ0KKysr
IFdlYkNvcmUvaHRtbC9IVE1MSW1hZ2VFbGVtZW50LmNwcAkod29ya2luZyBjb3B5KQ0KQEAgLTIw
OSw3ICsyMDksNyBAQA0KICAgICBpZiAoc2hhZG93KCkpCiAgICAgICAgIHJldHVybiBIVE1MRWxl
bWVudDo6Y2FuU3RhcnRTZWxlY3Rpb24oKTsKIAotICAgIHJldHVybiBmYWxzZTsKKyAgICByZXR1
cm4gdHJ1ZTsKIH0KIAogdm9pZCBIVE1MSW1hZ2VFbGVtZW50OjphdHRhY2goKQo=
</data>
<flag name="review"
          id="209105"
          type_id="1"
          status="-"
          setter="rniwa"
    />
          </attachment>
      

    </bug>

</bugzilla>