GoogleChrome / GoogleChrome/lighthouse

Switch deprecations audit from ChromeConsoleMessages => ReportingObserver

Open
#5,707 1 comment 0 reactions 0 assignees View on GitHub
architecture P3
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

The current impl uses the `ChromeConsoleMessages` gatherer and [filters on](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/audits/deprecations.js#L39-L46) `message.type === 'deprecation'`.

This works great, but [`ReportingObserver`](https://www.chromestatus.com/feature/4691191559880704) provides a better structured API intended for observing deprecations. It has other nice feature like buffering (can include deprecations that happen before the observer was added to the page) useful fields like `anticipatedRemoval`:

screen shot 2018-07-23 at 9 53 29 am

Switching to a `ReportingObserver`-based would set us up nicely for future audits that use the Reporting API: CSP violations, feature policy violations, browser interventions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.