<?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>12895</bug_id>
          
          <creation_ts>2007-02-26 05:03:59 -0800</creation_ts>
          <short_desc>REGRESSION: imagemap: pointer cursor is shown everywhere</short_desc>
          <delta_ts>2007-03-02 00:36:01 -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>Images</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://michi.stuenzi.net/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Steinacher">tom</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>koivisto</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21478</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Steinacher">tom</who>
    <bug_when>2007-02-26 05:03:59 -0800</bug_when>
    <thetext>Using revision 19850, the pointer cursor on the image map on http://michi.stuenzi.net/ is shown everywhere, not just on the links. This doesn&apos;t occur in shipping Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21370</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-02-26 10:04:53 -0800</bug_when>
    <thetext>Probably caused by &lt;http://trac.webkit.org/projects/webkit/changeset/19400&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21160</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-02-27 06:31:55 -0800</bug_when>
    <thetext>I can&apos;t get to the URL mentioned here. I&apos;ll look for other image maps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21161</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-02-27 06:34:45 -0800</bug_when>
    <thetext>Testing with the image map at &lt;http://www.december.com/html/demo/imagemap.html&gt;, everything&apos;s working fine. So I can&apos;t diagnose this without access to the broken test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21152</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-02-27 06:44:27 -0800</bug_when>
    <thetext>Another test case:
data:text/html,&lt;img src=&quot;http://webkit.org/images/icon-gold.png&quot; usemap=&quot;#map&quot;&gt;

Some other places that check isLink() specifically exclude elements whose renderer is an image. Perhaps that&apos;s just what Document::prepareMouseEvent() should do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21131</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Steinacher">tom</who>
    <bug_when>2007-02-27 08:29:12 -0800</bug_when>
    <thetext>The page is working again. I changed the DNS servers and forgot to set them up correctly. So please try again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20985</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-27 19:36:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/5028163&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20806</commentid>
    <comment_count>7</comment_count>
      <attachid>13439</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2007-03-01 11:58:52 -0800</bug_when>
    <thetext>Created attachment 13439
imagemap image should never itself be the URLElement in hit test results

This does not replicate Firefox behavior where if usemap attribute is empty or wrong the hand cursor is shown over entire image area. That seems more like a bug than a feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20808</commentid>
    <comment_count>8</comment_count>
      <attachid>13440</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2007-03-01 13:28:16 -0800</bug_when>
    <thetext>Created attachment 13440
First  attempt

Hi,

I am not sure HTMLImageElement should ever return true for isLink, so I am attaching the patch since it is an easy fix. Let me know if I got isLink all wrong though.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20812</commentid>
    <comment_count>9</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2007-03-01 15:01:24 -0800</bug_when>
    <thetext>I wasn&apos;t sure either but not setting isLink for imagemaps seemed like a risky change considering that it is used from quite many places not related to this particular problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20824</commentid>
    <comment_count>10</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-03-01 18:24:42 -0800</bug_when>
    <thetext>I think it is safer to take Antti&apos;s narrow fix for now, and later investigate whether any of the paces calling isLink also want to include imagemaps. It&apos;s hard to tell from a quick scan of the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20826</commentid>
    <comment_count>11</comment_count>
      <attachid>13439</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-03-01 18:33:25 -0800</bug_when>
    <thetext>Comment on attachment 13439
imagemap image should never itself be the URLElement in hit test results

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20827</commentid>
    <comment_count>12</comment_count>
      <attachid>13440</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-03-01 18:34:17 -0800</bug_when>
    <thetext>Comment on attachment 13440
First  attempt

I don&apos;t think we should land this fix for now, but in the future we should figure out what parts of the code expect an imagemap to be treated as a link, and which don&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20831</commentid>
    <comment_count>13</comment_count>
      <attachid>13440</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-03-01 23:23:11 -0800</bug_when>
    <thetext>Comment on attachment 13440
First  attempt

(r-, but I think we should investigate this approach later, when we have time to review the affected code).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20751</commentid>
    <comment_count>14</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2007-03-02 00:36:01 -0800</bug_when>
    <thetext>r19941</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13439</attachid>
            <date>2007-03-01 11:58:52 -0800</date>
            <delta_ts>2007-03-01 18:33:25 -0800</delta_ts>
            <desc>imagemap image should never itself be the URLElement in hit test results</desc>
            <filename>12895.patch</filename>
            <type>text/plain</type>
            <size>1489</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxOTkyMSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTggQEAKKzIwMDctMDItMjggIEFudHRpIEtvaXZpc3RvICA8YW50dGlAYXBwbGUu
Y29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZp
eCBmb3IgaHR0cDovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTI4OTUKKyAgICAg
ICAgUkVHUkVTU0lPTjogaW1hZ2VtYXA6IHBvaW50ZXIgY3Vyc29yIGlzIHNob3duIGV2ZXJ5d2hl
cmUKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzUwMjgxNjM+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Fzc29jaWF0ZWQgYXJlYSBlbGVtZW50IG5vdCB0aGUgaW1hZ2UgaXRzZWxmCisgICAgICAgIGlm
IChub2RlLT5pc0xpbmsoKSAmJiAhcmVzdWx0LlVSTEVsZW1lbnQoKSAmJiAhbm9kZS0+aGFzVGFn
TmFtZShpbWdUYWcpKQogICAgICAgICAgICAgcmVzdWx0LnNldFVSTEVsZW1lbnQoc3RhdGljX2Nh
c3Q8RWxlbWVudCo+KG5vZGUpKTsKICAgICAgICAgbm9kZSA9IG5vZGUtPnBhcmVudE5vZGUoKTsK
ICAgICB9Cg==
</data>
<flag name="review"
          id="5298"
          type_id="1"
          status="+"
          setter="mjs"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13440</attachid>
            <date>2007-03-01 13:28:16 -0800</date>
            <delta_ts>2007-03-01 23:23:11 -0800</delta_ts>
            <desc>First  attempt</desc>
            <filename>12895.diff</filename>
            <type>text/plain</type>
            <size>1821</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxOTkyNikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTcgQEAKKzIwMDctMDMtMDEgIFJvYiBCdWlzICA8YnVpc0BrZGUub3JnPgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIGh0dHA6Ly9idWdz
LndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTEyODk1CisgICAgICAgIFJFR1JFU1NJT046IGlt
YWdlbWFwOiBwb2ludGVyIGN1cnNvciBpcyBzaG93biBldmVyeXdoZXJlCisKK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lzTnVsbCgpOwogICAgIH0gZWxzZSBpZiAoYXR0ck5hbWUgPT0gaXNtYXBBdHRyKQogICAg
ICAgICBpc21hcCA9IHRydWU7CiAgICAgZWxzZSBpZiAoYXR0ck5hbWUgPT0gb25hYm9ydEF0dHIp
CkluZGV4OiBXZWJDb3JlL21hbnVhbC10ZXN0cy9pbWFnZW1hcC1jdXJzb3IuaHRtbAo9PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09Ci0tLSBXZWJDb3JlL21hbnVhbC10ZXN0cy9pbWFnZW1hcC1jdXJzb3IuaHRtbAkocmV2aXNp
b24gMCkKKysrIFdlYkNvcmUvbWFudWFsLXRlc3RzL2ltYWdlbWFwLWN1cnNvci5odG1sCShyZXZp
c2lvbiAwKQpAQCAtMCwwICsxLDkgQEAKKzxodG1sPgorPGJvZHk+Cis8cD5UaGUgdXBwZXIgaGFs
ZiBvZiB0aGUgcmVjdCBzaG91bGQgc2hvdyBhIGhhbmQgY3Vyc29yLCB0aGUgbG93ZXIgaGFsZiBz
aG91bGRuJ3QuPC9wPgorPG1hcCBuYW1lPSJuYXZtYXAiPgorPGFyZWEgc2hhcGU9cmVjdCBjb29y
ZHM9IjAsMCwxMDAsNTAiIGhyZWY9IiMiLz4KKzwvbWFwPgorPGltZyBib3JkZXI9MiB3aWR0aD0x
MDAgaGVpZ2h0PTEwMCB1c2VtYXA9I25hdm1hcCBpc21hcD4KKzwvYm9keT4KKzwvaHRtbD4K
</data>
<flag name="review"
          id="5299"
          type_id="1"
          status="-"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>