Deprecated APIs not using DeprecateMessageSource |
|||||||
Issue descriptionWe're attempting to use the `Log.entryAdded` event in Lighthouse to log deprecated API usage. So far, I've caught a few inconsistencies: - CSS /deep/ and ::shadow do not provide .url or .lineNumber - MediaStreamTrack.getSources(); // does not trigger a Log.entryAdded with source: 'deprecation' - console.timeline(); // does not trigger a Log.entryAdded with source: 'deprecation' There are probably other deprecated APIs not using DeprecateMessageSource. Would be good to do an audit and add them everywhere.
,
Jan 14 2017
Thanks for working on this! I thought that almost all deprecations were using the Deprecations class which has a single spot that the console message is added, but I can believe there are a couple special cases.
,
Feb 9 2017
Found another one. If you use geolocation on an http site, the console warns: getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details. (anonymous) @ VM1299:1 But this does not surface in our Lighthouse audit for deprecated messages. Should it? It's not really a deprecation or intervention, but a new policy as of Chrome 50.
,
Mar 29 2017
Yeah technically "deprecation" messages are really just warnings about things that will go away in the future. Generally we can't/don't retain warnings once an API has been removed. This geolocation one is more the "interventions" use case. I'd argue we should be using "InterventionMessageSource" for that one.
,
Sep 12 2017
,
Oct 16 2017
,
May 3 2018
Hi Kozy -- has there been any progress on this?
,
Dec 14
Paul, had done a sweep to get all deprecation messages using the centralized Deprecations class. Did that cover the specific examples in this old bug. If so, I think we can safely close.
,
Jan 10
This has been fixed by the new deprecation structure implemented for Reporting API. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by pfeldman@chromium.org
, Jan 13 2017Status: Assigned (was: Untriaged)