<?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>8989</bug_id>
          
          <creation_ts>2006-05-19 03:14:33 -0700</creation_ts>
          <short_desc>Tiger, Leopard: Add built-in support for .cur format CSS custom cursors</short_desc>
          <delta_ts>2011-06-13 21:15:36 -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>CSS</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://adresa.yandex.ru/search.xml?stype=adresa&amp;nl=0&amp;region=1&amp;what=epson&amp;where=</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dan</cc>
    
    <cc>dayveday</cc>
    
    <cc>dbates</cc>
    
    <cc>emacemac7</cc>
    
    <cc>ian</cc>
    
    <cc>sbvendor</cc>
    
    <cc>shanestephens</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42868</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-19 03:14:33 -0700</bug_when>
    <thetext>Steps to reproduce: open the bug URL, mouse over the map.

Expected results: cursor changes to a hand.
ToT results: cursor changes to an icon of a missing image.

Since shipped Safari doesn&apos;t support custom cursors at all (bug 5689), this problem doesn&apos;t occur, I&apos;ll file a separate P1/regression bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42869</commentid>
    <comment_count>1</comment_count>
      <attachid>8401</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-19 03:14:56 -0700</bug_when>
    <thetext>Created attachment 8401
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42987</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-20 03:59:41 -0700</bug_when>
    <thetext>CGImageSource already has support for .ico files, which have identical format (.cur differs by a single byte in the header). I have filed &lt;rdar://4556355&gt; for CG to support .cur.

Keeping this bug open, too - the format is pretty simple, and we don&apos;t necessarily have to wait for CG to support it. Microsoft documentation: &lt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_icons.asp&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50756</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-25 05:04:59 -0700</bug_when>
    <thetext>Looks like .cur cursors are actually supported by CG, but not fully - some are rendered fine, some are rendered incorrectly, and others are just ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59997</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-01 05:52:07 -0700</bug_when>
    <thetext>This works in Safari for Windows on XP Pro (a four-directional arrow cursor appears instead of a hand over the map--is this the equivalent in Windows?).

It may work in Mac OS X 10.5 Leopard as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76626</commentid>
    <comment_count>5</comment_count>
    <who name="Dan Fabulich">dan</who>
    <bug_when>2008-04-08 11:12:09 -0700</bug_when>
    <thetext>That extra byte of difference between a .cur and a .ico includes the anchor point of the cursor; this information is currently being ignored, which results in bug 15779.

As pointed out in comment #4, even the minimal support for showing the cursor doesn&apos;t work with Safari 3.1 on OS X 10.4; this is separately filed as bug 15783.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163801</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-11-15 16:06:40 -0800</bug_when>
    <thetext>The test case passes for me with the latest nightly build r50918 under Mac OS 10.5.8. So, this issue seems to have been resolved.

Alexey, are there still issue with .cur support? Can we close this bug?

(In reply to comment #5)
&gt; That extra byte of difference between a .cur and a .ico includes the anchor
&gt; point of the cursor; this information is currently being ignored, which results
&gt; in bug 15779.
&gt; 
&gt; As pointed out in comment #4, even the minimal support for showing the cursor
&gt; doesn&apos;t work with Safari 3.1 on OS X 10.4; this is separately filed as bug
&gt; 15783.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163809</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-11-15 16:46:28 -0800</bug_when>
    <thetext>Partial support for .cur files is present in CG on Leopard - they are decoded successfully, but we don&apos;t get to know where hotspot is. So, adding support directly to WebKit is still an option.

The actual page at bug URL still doesn&apos;t work correctly, so we need a new reduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164156</commentid>
    <comment_count>8</comment_count>
    <who name="">dayveday</who>
    <bug_when>2009-11-16 22:17:23 -0800</bug_when>
    <thetext>Bug 30820 looks like it should have solved this case, but I can still reproduce on r51062.

This is easy to reproduce with the Google Maps API:
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontrols/examples/test.html

Steps to reproduce:
1) Load demo
2) Click jagged line icon to toggle on polyline drawing
3) Observe that points are drawn at the upper-left corner of the cursor, not at the centre

This works as expected in IE/FF (although FF for Mac has no custom cursor support at all AFAICT).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170055</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Bell">sbvendor</who>
    <bug_when>2009-12-09 10:57:12 -0800</bug_when>
    <thetext>I can also confirm that custom .CUR cursors do not behave 
acceptably in WebKit r51881 due to bug 15779.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420113</commentid>
    <comment_count>10</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-06-13 17:53:57 -0700</bug_when>
    <thetext>No comments on this bug for 1.5 years, and the issue now seems to be resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420189</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-13 21:15:36 -0700</bug_when>
    <thetext>It&apos;s not resolved on Tiger or Leopard (see the bug title), but it seems safe to assume that no one is going to work on that now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8401</attachid>
            <date>2006-05-19 03:14:56 -0700</date>
            <delta_ts>2006-05-20 02:44:25 -0700</delta_ts>
            <desc>test case</desc>
            <filename>cur.zip</filename>
            <type>application/octet-stream</type>
            <size>1167</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAAKpwszQAAAAAAAAAAAAAAAAEABAAY3VyL1VYDABfmG1EX5htRPUB9QFQSwMEFAAI
AAgA1nCzNAAAAAAAAAAAAAAAAA8AEABjdXIvY3Vyc29yLmh0bWxVWAwAtJhtRLSYbUT1AfUBLY09
D4IwFEV3fsULkyaCuAKyOTg4M/fjhTbUPvPaIvx7i2G5ybk3N+dFC0I0CCpxIIaM/GfpUg5aoYKN
EgRDyWkIiCDACK+PwwU8xVxJphk92LeYEKwiXxdFr+0CIW4O7+XX6mjaW9N81s6gnUw8QAo1T0zJ
60qRI27dPu727lC0id1pYiHrzOeuHEbiOYD1MFr/fPTXrBmKH1BLBwi1zr6EmgAAAMkAAABQSwME
CgAAAAAA8nCzNAAAAAAAAAAAAAAAAAkAEABfX01BQ09TWC9VWAwA55htROeYbUT1AfUBUEsDBAoA
AAAAAPJwszQAAAAAAAAAAAAAAAANABAAX19NQUNPU1gvY3Vy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