Open Bug 1847208 Opened 1 year ago Updated 1 year ago

Rules view doesn't refresh when stylesheet is removed

Categories

(DevTools :: Inspector: Rules, defect, P2)

defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8><style>body {background: tomato}</style><button>Remove style</button><script>document.querySelector("button").addEventListener("click", () => document.querySelector("style").remove())</script>
  2. Open the inspector, select the <body> element
  3. Click on the "Remove style" button

Expected results

The body { background: tomato; } rule that was displayed in the rule view disappears

Actual results

The rule is still visible


This depends on Bug 1771113 where we'll be able to listen for removed stylesheet resources.

Severity: -- → S3
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.