Closed Bug 1696677 Opened 4 years ago Closed 4 years ago

Autocomplete for url() values don't work for the cursor property

Categories

(DevTools :: Inspector: Rules, defect)

Firefox 88
defect

Tracking

(firefox-esr78 unaffected, firefox86 unaffected, firefox87 unaffected, firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- unaffected
firefox88 --- fixed

People

(Reporter: mtigley, Assigned: mtigley)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

STR

  1. Open the DevTools Inspector
  2. Go to the Rules view
  3. In any rule, try adding a cursor property with a url() value

Expected
While typing in "url", I expect the autocomplete list to show an option for "url"

Actual
No autocomplete option is given for "url"

I think this has to do with the support for a "url" value being removed for the cursor property in https://phabricator.services.mozilla.com/D106745 after using the ./mach devtools-css-db to update the DevTools CSS database.

OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → Firefox 88

Looked into this a bit more and it looks like modifying devtools/shared/css/generated/properties-db.js isn't actually what we want (and probably what we shouldn't be doing anyway since it's generated).

I think the next step here is look into this, which is called from GetCSSValuesForProperty. The caller from C++ is through InspectorUtils.GetCSSValuesForProperty.

I wonder if this is because SpecifiedValueInfo is manually implemented for CursorImage now, so it's tripping up what GetCSSValuesForProperty is getting for enabled values for the cursor property . Emilio, perhaps you might know why this is?

Flags: needinfo?(emilio)

Yes, this was caused by manually implementing SpecifiedValueInfo for CursorImage. We probably want to just implement collect_completion_keywords and return url and image-set for now.

Flags: needinfo?(emilio)
Assignee: nobody → mtigley
Status: NEW → ASSIGNED
Attachment #9207331 - Attachment description: Bug 1696677 - Add a regression test for cursor property values. r=emilio → Bug 1696677 - Add a regression test for cursor property values used for autocompletion. r=emilio
Attachment #9207331 - Attachment description: Bug 1696677 - Add a regression test for cursor property values used for autocompletion. r=emilio → Bug 1696677 - Add a regression test for cursor property values. r=emilio
Attachment #9207331 - Attachment description: Bug 1696677 - Add a regression test for cursor property values. r=emilio → Bug 1696677 - Add tests for ensuring that "url" and "image-set" are autocomplete values for content property. r=emilio
Pushed by mtigley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f82baebe8645 Have collect_completion_keywords return `url` and `image-set` for CursorImage. r=emilio https://hg.mozilla.org/integration/autoland/rev/d479bcc42014 Add tests for ensuring that "url" and "image-set" are autocomplete values for content property. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Set release status flags based on info from the regressing bug 1695402

QA Whiteboard: [qa-88b-p2]
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: