catchpoint / WebPageTest.agent

Cross-platform WebPageTest agent
Other
213 stars 138 forks source link

CWV element extraction script accidentally trips Chrome feature usage flags #564

Closed pmeenan closed 2 years ago

pmeenan commented 2 years ago

The runtime script that is injected into pages to extract the element details from LCP, CLS, and paint events accidentally triggers Chrome's feature usage flags because it iterates over all of the element properties and accesses the values.

Instead of dumping the full element attributes, the script should be updated to just extract the bits that the WebPageTest UI and API need to make use of (URL, rectangle, background-image, innerHTML).