custom cursor defined by "url ..." does not show




7 years ago
2 years ago


(Reporter:, Unassigned)



Firefox Tracking Flags

(Not tracked)


(Whiteboard: [bugday-20110401])


(2 attachments)



7 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729)

I´m wrinting a firefox addon, which among other things should allow me to attach a custom cursor for certain html elements for specific web sites.

Assigning one of the predefined cursors (e.g. "wait") works, but the custom cursor i want to use shows on some elements (e.g over the toolbarbuttons) of the firefox window (this is telling me the cursor works at all) but it doesn´t work for any element on an html page, instead the defined fallback cursor ("wait") is used. In other words with my addon i´m able to set the cursor property of an html element of a currently shown website to a different cursor, as long as this cursor is one of the predefined cursors. But this does not work for a custom cursor. A custom cursor works, but only for some elements of firefox´s window. 

Reproducible: Always

Steps to Reproduce:
1.install an addon implementing an eventlistener for onmouseover (  document.addEventListener("mouseover", function (e){ S_Down.mouseover(e); }, false);)

2.this is my onmouseover event handler:
mouseover: function(e) {
// process mousehover
//*************************************************************************************** = "url('chrome://S_Down/skin/smiley.cur'),wait";

3. load any website, a smiley should be shown as cursor all over this site, but the "wait" cursor is shown instead. The smiley however shows on the toolbar for example
Actual Results:  
Custom cursor shows on the toolbar, "wait" cursor is shown for the html page

Expected Results:  
Custom cursor should appear on the html page as well

This is my first bug report, i hope i submitted it to its appropriate place

Comment 1

7 years ago
Please give us an example so we can try to reproduce it.
Keywords: testcase-wanted
Whiteboard: [bugday-20110401]


7 years ago
Version: unspecified → 3.6 Branch

Comment 2

7 years ago
Created attachment 523793 [details]
Demo Addon showing the bug (?)

Install and run Firefox, you get a "smiley" cursor over e.g. the toolbar but noz over a website, there the fallback cursor ("wait" - in this case) is shown, which is a bug in my opinion.
Does this happen in Firefox 4?

Comment 4

7 years ago
Yes, it does, I can confirm it. I am not sure about the proper component to sort this bug.

However, maybe the separation of chrome (FF UI) and content (page) is intentional and you must access the content area in a different way.
Component: General → Extension Compatibility
Ever confirmed: true
OS: Windows XP → All
QA Contact: general → extension.compatibility
Hardware: x86 → All
Version: 3.6 Branch → 4.0 Branch

Comment 5

7 years ago
I can confirm that this bug also affects cursors set via the style-URL method in SVG images rendered by firefox 4.  This worked perfectly fine in firefox 3, but now in FF4 it fails to change the cursor.
I will attache a simple SVG file (green square), and custom cursor (PNG) that is referenced in the SVG.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 

<svg version="1.1" xmlns=""  
	viewBox="0 0 500 500" preserveAspectRatio="xMidYMid" xml:space="preserve"
	zoomAndPan="magnify"  >
	<cursor id='cursor-zoomin' xlink:href = "cursor-zoomin.png" x="5" y="5" />

<rect id='testrect' x='0' y='0' width='500' height='500' fill='green' opacity='0.5'
 cursor="url(#cursor-zoomin),default" style="cursor: url('#cursor-zoomin'), url('cursor-zoomin.png'), auto;" />


When you mouse over the square, the cursor should change to the zoom-in cursor (magnifying glass with a + inside of it).  Again, works on FF3, not on FF4
Comment hidden (off-topic)
Comment hidden (obsolete)
Comment hidden (obsolete)
Comment hidden (obsolete)
Robert followed up via email that attachment 538384 [details] actually shows a different issue than what this bug was originally filed for.

This bug tracks SVG cursor elements not working, which isn't implemented and has never worked. The issue shown in attachment 538384 [details] is a regression with cursor styles not working, which should be. I've spun that issue off to bug 1217481 per comment 9.
No longer blocks: 276431
Flags: needinfo?(dholbert)
You need to log in before you can comment on or make changes to this bug.