Bug 8989 - Tiger, Leopard: Add built-in support for .cur format CSS custom cursors
Summary: Tiger, Leopard: Add built-in support for .cur format CSS custom cursors
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Nobody
URL: http://adresa.yandex.ru/search.xml?st...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2006-05-19 03:14 PDT by Alexey Proskuryakov
Modified: 2011-06-13 21:15 PDT (History)
7 users (show)

See Also:


Attachments
test case (1.14 KB, application/octet-stream)
2006-05-19 03:14 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2006-05-19 03:14:33 PDT
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't support custom cursors at all (bug 5689), this problem doesn't occur, I'll file a separate P1/regression bug.
Comment 1 Alexey Proskuryakov 2006-05-19 03:14:56 PDT
Created attachment 8401 [details]
test case
Comment 2 Alexey Proskuryakov 2006-05-20 03:59:41 PDT
CGImageSource already has support for .ico files, which have identical format (.cur differs by a single byte in the header). I have filed <rdar://4556355> for CG to support .cur.

Keeping this bug open, too - the format is pretty simple, and we don't necessarily have to wait for CG to support it. Microsoft documentation: <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_icons.asp>.
Comment 3 Alexey Proskuryakov 2006-07-25 05:04:59 PDT
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.
Comment 4 David Kilzer (:ddkilzer) 2007-11-01 05:52:07 PDT
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.
Comment 5 Dan Fabulich 2008-04-08 11:12:09 PDT
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't work with Safari 3.1 on OS X 10.4; this is separately filed as bug 15783.
Comment 6 Daniel Bates 2009-11-15 16:06:40 PST
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)
> 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't work with Safari 3.1 on OS X 10.4; this is separately filed as bug
> 15783.
Comment 7 Alexey Proskuryakov 2009-11-15 16:46:28 PST
Partial support for .cur files is present in CG on Leopard - they are decoded successfully, but we don'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't work correctly, so we need a new reduction.
Comment 8 dayveday 2009-11-16 22:17:23 PST
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).
Comment 9 Scott Bell 2009-12-09 10:57:12 PST
I can also confirm that custom .CUR cursors do not behave 
acceptably in WebKit r51881 due to bug 15779.
Comment 10 Shane Stephens 2011-06-13 17:53:57 PDT
No comments on this bug for 1.5 years, and the issue now seems to be resolved.
Comment 11 Alexey Proskuryakov 2011-06-13 21:15:36 PDT
It'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.