ElementStyle should behave more like a model

NEW
Unassigned

Status

()

Firefox
Developer Tools: Inspector
P3
enhancement
3 years ago
2 years ago

People

(Reporter: gl, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
When bug 1139058 lands, we will need to deal with issue that the panel refreshes and removes the unmatched rules when the layout changes.

To quote Patrick on what we want to get done from https://bugzilla.mozilla.org/show_bug.cgi?id=1139058#c30:
I wish we had a client-side model of the rules to which we could write from the rule-view, and when a server-side update would be needed, we would update the model accordingly and only then refresh the view.
ElementStyle is the closest thing to this, but it's not clear how the model is built/updated.
So I'd like the new bug to be about making ElementStyle more like a model:
- all rules (even unmatched) should be stored in this.rules
- there should be a add method,
- there should be a clear method (unless we do a new ElementStyle everytime, I don't remember),
- populate should not replace this.rules entirely but only update/insert
(Reporter)

Updated

3 years ago
Depends on: 1139058
Bug triage. Filter on CLIMBING SHOES
Priority: -- → P3
Whiteboard: [btpp-backlog]
Severity: normal → enhancement
Priority: P3 → --
Whiteboard: [btpp-backlog]
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.