Bug 196215

Summary: Web Inspector: Green highlight disappears from edited properties when adding a new property
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Nikita Vasilyev 2019-03-25 14:13:49 PDT
# STEPS TO REPRODUCE:
1. inspect any page (https://devinrousso.com/demo/WebKit/test.html)
2. open the Elements tab
3. select any element that has at least one rule with at least two properties
4. disable (e.g. comment out) the first property of the rule with at least two properties
5. add a new property immediately after the first property
 => the green "modified" border/highlight next to the first property disappears

NOTES:
The problem is that properties get recreated (when they shouldn't be) and the recreated properties no longer have initialState.

Technically, this broke with https://trac.webkit.org/changeset/243256/webkit. However, reverting it is unlikely to be the correct solution.
Comment 1 Radar WebKit Bug Importer 2019-03-25 14:25:01 PDT
<rdar://problem/49229170>
Comment 2 Nikita Vasilyev 2019-04-14 19:02:39 PDT
This should be addressed by the patch in https://bugs.webkit.org/show_bug.cgi?id=195264#c17.