Closed Bug 1590191 Opened 5 years ago Closed 5 years ago

CSS Cursor Style URL No Longer Works In Image Maps

Categories

(Core :: Layout, defect)

69 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla72
Tracking Status
firefox-esr68 --- wontfix
firefox67 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- verified
firefox72 --- verified

People

(Reporter: linux4me, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

Assign a CSS cursor value "url" to an image map area using a valid 32 x 32 pixel *.cur or *.png image:

#imagemap area {
cursor: url(https://i.postimg.cc/HLpnLftr/X.png),auto;
}

I set up a JSFiddle where you can test the various cursor styles in both a normal div element (where the cursor url value still works) and in an image map:

https://jsfiddle.net/linux4me/vn6kacg2/

Actual results:

The cursor does not use the image specified by the URL, but uses the default pointer.

Expected results:

The cursor should change to the image specified by the URL within the boundaries of the image map area. In other browsers; e.g., Chromium 77.0.3865.90, it works as it should.

Component: Untriaged → Layout
Product: Firefox → Core

This worked in 66.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Hmm, actually, it's bug 1525134 what is to blame. Same person who broke it though, d'oh :/

Regressed by: 1525134
No longer regressed by: CVE-2019-11695
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4aa69b40591
Trigger image loads for <area> cursor styles. r=heycam
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Is this something we should consider uplifting or should it ride Fx72 to release?

Flags: needinfo?(emilio)
Flags: in-testsuite+

Same, really minor fix for a 69 regression, could be worth an uplift.

Flags: needinfo?(emilio)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)

Same, really minor fix for a 69 regression, could be worth an uplift.

If you think this is worth it, don't hesitate to request the uplift, thanks.

Flags: needinfo?(emilio)

Comment on attachment 9103113 [details]
Bug 1590191 - Trigger image loads for <area> cursor styles.

Beta/Release Uplift Approval Request

  • User impact if declined: Some custom cursors don't work on <area> element.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very low-risk, just triggers the loads to preserve old behavior.
  • String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9103113 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I verified this issue on Mac OS X 10.14, Windows 10 x64 and Ubuntu 16.04 with FF Nightly 72.0a1(2019-11-04) and I can confirm the fix.

Comment on attachment 9103113 [details]
Bug 1590191 - Trigger image loads for <area> cursor styles.

Low risk layout bug with tests and verified on Nightly, uplift approved for 71 beta 8, thanks.

Attachment #9103113 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I verified this issue on Mac OS X 10.14, Windows 10 x64 and Ubuntu 16.04 with FF Beta 71.0b8 and I can confirm the fix.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: