Open Bug 1637835 Opened 4 years ago Updated 4 years ago

Replacing the text content of a stylesheet does not refresh the inspector's style panes

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: loganfsmyth, Unassigned)

References

Details

I can't really tell if this should be a dupe of https://bugzilla.mozilla.org/show_bug.cgi?id=591212, but filing for now to let you all decide. This is an issue raised in an email so I'm copying over the repro steps:

Test Repo:
https://github.com/wbkd/webpack-starter

  • Clone
  • npm install
  • npm start

Chrome 81.00.4044.122 (Offical Build) (64-bit):

Firefox 75.0 (64-bit):

It looks like the core issue is that the inspector UI doesn't update seem to realize that the styles change. If I force-refresh the UI, it will pull in the new changes, but it won't happen automatically.

Webpack's HMR will edit the context of an inline style using https://github.com/webpack-contrib/style-loader/blob/5520e687422eb422309cdd0231c3592048fa1247/src/runtime/injectStylesIntoStyleTag.js#L161-L176, which I guess doesn't get detected as a style change.

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