DescriptionMove deprecation messages to UseCounter::measureDeprecatedFeature.
Currently, deprecation messages are generated and deduplicated inside
PageConsole::reportDeprecation. The functionality directly replicates
UseCounter's BitVector-based deduplication, and it forces us to store
another list of features in PageConsole::DeprecatedFeatures. This can
be greatly simplified by moving the functionality into UseCounter,
making it a one-stop-shop for measurement and deprecation (we might
want to rename it at some point).
This has a few advantages. Most importantly, we can ensure that every
deprecated feature is measured. This patch adds histogram measurement
to `AudioBufferSourceNode.looping`, `HTMLMediaElement.webkitAddKey`,
and `HTMLMediaElement.webkitGenerateKeyRequest`, for instance. Going
forward, it will be impossible to miss these, as the mechanism is the
same.
At the same time, this patch allows us to move some of the deprecation
work to IDL files: we don't need to notify explicitly if we can declare
deprecation via the 'DeprecateAs' IDL attribute. This allows us to
remove the explicit deprecation from HTMLMediaElement::webkitAddKey,
HTMLMediaElement::webkitGenerateKeyRequest, and
DOMWindowQuota::webkitStorageInfo. More to come.
BUG=233522
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149184
Patch Set 1 #Patch Set 2 : typo. #
Total comments: 3
Patch Set 3 : Feedback. #Patch Set 4 : Rebase. #Messages
Total messages: 8 (0 generated)
|