Tweaking CSS in DevTools triggers a GET request for variable fonts
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Not tracked)
People
(Reporter: saadat.mateen, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Steps to reproduce:
- Go to https://saadatm.github.io/browser-bugs/vf-get-req/index.html. This is a simple web page that uses a variable font for its body.
- Open the DevTools.
- In the DevTools' Page Inspector, tweak any CSS property for the
body
orp
tag (e.g. increase or decrease themax-width
,line-height
, ormargin
).
Actual results:
For every tweak done in the Page Inspector, the Network tab logs a new GET request for the variable font. As a result, the text of the web page flashes with each tweak.
Expected results:
New GET requests should not have been made for the variable font, and the text of the page should not have flashed with each CSS tweak in the Page Inspector.
Comment 1•10 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•10 months ago
|
||
Everytime we update a style we end up replacing the stylesheet which leads to those additional requests.
Comment 3•10 months ago
|
||
probably a dupe of Bug 1746159
Reporter | ||
Comment 4•10 months ago
|
||
Just looked at Bug 1746159, and its reporter has mentioned that setting "Disable cache" to off stops the problem.
However, in my case, the issue remains even if I set "Disable cache" to off. The only difference that I can see is that in my example web page, a variable webfont is being used.
Description
•