diff --git a/dom/base/UseCounters.conf b/dom/base/UseCounters.conf index d863fb68f826..d1e60f3b3b32 100644 --- a/dom/base/UseCounters.conf +++ b/dom/base/UseCounters.conf @@ -415,5 +415,7 @@ custom PrivateBrowsingCachesDelete calls caches.delete in Private Browsing Mode custom PrivateBrowsingCachesKeys calls caches.keys in Private Browsing Mode custom PrivateBrowsingNavigatorServiceWorker accesses navigator.serviceWorker in Private Browsing Mode +method Scheduler.postTask + // NOTE: Adding use counters requires data review, see // https://wiki.mozilla.org/Data_Collection diff --git a/dom/base/UseCountersWorker.conf b/dom/base/UseCountersWorker.conf index cbd3a45e13b0..c912f0ea141e 100644 --- a/dom/base/UseCountersWorker.conf +++ b/dom/base/UseCountersWorker.conf @@ -73,3 +73,5 @@ custom PrivateBrowsingCachesHas calls caches.has in Private Browsing Mode custom PrivateBrowsingCachesOpen calls caches.open in Private Browsing Mode custom PrivateBrowsingCachesDelete calls caches.delete in Private Browsing Mode custom PrivateBrowsingCachesKeys calls caches.keys in Private Browsing Mode + +method Scheduler.postTask diff --git a/dom/webidl/WebTaskScheduling.webidl b/dom/webidl/WebTaskScheduling.webidl index 85b30e552151..6253b76c5154 100644 --- a/dom/webidl/WebTaskScheduling.webidl +++ b/dom/webidl/WebTaskScheduling.webidl @@ -22,6 +22,7 @@ callback SchedulerPostTaskCallback = any (); [Exposed=(Window, Worker), Pref="dom.enable_web_task_scheduling"] interface Scheduler { + [UseCounter] Promise postTask( SchedulerPostTaskCallback callback, optional SchedulerPostTaskOptions options = {}