Closed Bug 1581850 Opened 5 years ago Closed 5 years ago

Selector highlighter doesn't show up when hovering selectors in Style Editor

Categories

(DevTools :: Style Editor, defect, P3)

70 Branch
defect

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox69 unaffected, firefox70 wontfix, firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 --- wontfix
firefox71 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

Details

(Keywords: regression, regressionwindow-wanted)

Attachments

(2 files)

The "mousemove" event listeners need to be added to the iframe's contentWindow instead of directly to it.

This is a regression which happened after Firefox 69 (last known good version).

Steps to reproduce

  • Navigate to https://bugzilla.mozilla.org/home
  • Open DevTools, switch to Style Editor
  • Select the index.css stylesheet from the left column
  • Find the CSS rule with the selector #welcome
  • Move the mouse over the selector

Expected

After a short delay, the target element ("Welcome to Bugzilla" element) on the page should be highlighted with a box (the selector highlighter). I have attached a video demo with the expected result.

Actual

The target element is not highlighted.

Razvan, you have an r+ patch attached to this bug, will you land it in 71? Thanks

Flags: needinfo?(rcaliman)

Chiming in: the fix is really tiny and would be very safe for 70, but I don't think it's really worth an uplift to be honest.

I have not landed this yet because the fix triggered test failures elsewhere in the Style Editor which I have not yet addressed. Once I do that, I will follow-up with this bug.

Flags: needinfo?(rcaliman)
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e7bd0696e0c8
Ensure target elements are highlighted when hovering selectors in DevTools Style Editor. r=pbro
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: