Open jspivack opened 1 month ago
For extensions whose content script is injected into a wide range of sites, privacy makes this really hard.
For example, Firefox has PerformanceWarnings and although I've been recording them for my extension and can see they do fire (very) occasionally, I can't record the URL where the warning occurred in order to investigate the issue since it could expose personal information (e.g. capability URLs). As a result, the reports are not particularly actionable.
Although it's not official spec, the console.createTask()
pattern would also fit nicely here. Perhaps something similar could be implemented to work across contexts.
https://developer.chrome.com/blog/devtools-modern-web-debugging#linked_stack_traces
Overview
Following up on the recent messages in the WECG matrix with @oliverdunk -- it feels like there is a need for greater observability and performance tracking within browser extensions, both holistically and for specific lenses into different parts of extension architecture (background scripts, content scripts etc). For a myriad of reasons, extensions share similarities with both traditional web applications and native/mobile distributions, but fall into a gap where neither platform's flavors of instrumentation are particularly well-suited for profiling them:
Goals
Primary: Developer experience
Secondary: Standards cross-team/group collaboration
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming https://developer.mozilla.org/en-US/docs/Web/API/PerformancePaintTiming https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming https://developer.mozilla.org/en-US/docs/Web/API/PerformanceScriptTiming
Potential developer tools improvements
Examples of relevant extension platform events to identify
These categories of milestones are critical in assessing performance and would help paint a clearer picture in how extensions are being bootstrapped and executed