w3c / charter-webperf

Web Performance Group charter
https://w3c.github.io/charter-webperf/
27 stars 11 forks source link

Could we expose browser crashes to developers? #29

Open igrigorik opened 7 years ago

igrigorik commented 7 years ago

(discussed at TPAC 2016; rough notes and summary of discussed ideas below)

Despite our best efforts, browser crashes are a thing.. with out-of-memory being one of the most common (but not the only) culprits. Anecdotally, this is particularly bad on lower end devices that don't have a lot of memory: some sites go to great lengths to detect such devices and aggressively remove/downsize their images/video, etc, to ensure that the user is able to view the page. It would be nice if the browser provided a feedback mechanism to detect such cases.

Anecdotally, some sites are already attempting to track "crashes" by setting a localStorage flag when the page opens, and toggling it to off when visibilityState changes.. If the page is loaded and this flag is set, it means that the previous navigation did not "end cleanly" -- this doesn't explain what the problem was, but even a baseline metric of "problem exists" is a useful signal.


Question: is there anything we (webperf group) could or should do to help identify these cases?

Also, at least in theory, Reporting API already provides the necessary infrastructure to queue the out-of-band report. What we'd have to define is how/when such reports are triggered.

igrigorik commented 6 years ago

There is active work on Reporting API, which is a key enabling block for surfacing crash reports. However, there is no active work in our working group to tackle this specific use case as of today.

Marking as help-wanted, in case someone wants to pick this up and drive the discovery + spec + implementation work.

tdresser commented 6 years ago

@jpchase, where is the reporting API work being tracked?

yoavweiss commented 6 years ago

@tdresser https://github.com/WICG/reporting