Closed Bug 1579155 Opened 5 years ago Closed 5 years ago

Computed view is not updated when updating a stylesheet in the rule view

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1456779

People

(Reporter: jdescottes, Unassigned)

Details

STRs:

  • open https://rural-quill.glitch.me/
  • open devtools inspector with 3 pane mode, select computed view
  • select the h1 in the markup view
  • update the color to anything else

Expected result: the computed view color should be updated
Actual result: the computed view color is not updated

Note1: this only happens for rules defined in a stylesheet, adding rules to the element directly will update the computed view.
Note2: doing the same stylesheet modification in the StyleEditor will update the computed view

My analysis is that the update of the computed view here should be triggered from a stylesheet-updated event. However this event is not emitted by the pageStyle actor when the update comes from the RuleView, because it triggers an update of type UPDATE_PRESERVING_RULES. And only style updates with type UPDATE_GENERAL are turned into stylesheet-updated events:

Some additional pointers:

I feel like updates to stylesheets from the ruleview should also trigger stylesheet updated events, but we should make sure this doesn't have a bad performance impact.

Most likely a duplicate of bug 1456779. I will close this one and more your comment to that bug since it's really useful. Thanks.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Component: Inspector: Computed → Inspector
You need to log in before you can comment on or make changes to this bug.