Closed Bug 1740002 Opened 4 years ago Closed 3 years ago

Style Editor doesn't remove stylesheets of removed iframes

Categories

(DevTools :: Style Editor, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1770360

People

(Reporter: ochameau, Unassigned)

Details

STR:

  • open data:text/html,<iframe src="data:text/html,<style>* {color:red;}</style>"></iframe><button onclick="document.querySelector('iframe').remove()">remove</button>
  • click on remove remove which removes the iframe having stylesheets

Current behavior is that the stylesheet of the iframe is kept displayed in the style editor and can only throw.

Ideally, we would remove iframe stylesheets when theirs iframe/document is removed.

Note that adding an iframe while devtools is opened works fine.

I can easily repro on my machine.

Thank you for the report Alex.

Honza

Severity: -- → S3
Priority: -- → P3

Similar bug (Bug 1770360) was filed (and fixed)

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