mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1841498 - Convert BrowserUsageTelemetry.jsm to ESM. r=geckoview-reviewers,calu
Bug 1834831 forgot converting mobile version since `Document::AutomaticStorageAccessPermissionCanBeGranted` uses this module. Differential Revision: https://phabricator.services.mozilla.com/D182661
This commit is contained in:
parent
7dc93a32c1
commit
0266d92dba
@ -3,12 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
var EXPORTED_SYMBOLS = ["getUniqueDomainsVisitedInPast24Hours"];
|
||||
|
||||
// Used by nsIBrowserUsage
|
||||
function getUniqueDomainsVisitedInPast24Hours() {
|
||||
export function getUniqueDomainsVisitedInPast24Hours() {
|
||||
// The prompting heuristic for the storage access API looks at 1% of the
|
||||
// number of the domains visited in the past 24 hours, with a minimum cap of
|
||||
// 5 domains, in order to prevent prompts from showing up before a tracker is
|
@ -6,7 +6,7 @@
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
"AndroidLog.jsm",
|
||||
"BrowserUsageTelemetry.jsm",
|
||||
"BrowserUsageTelemetry.sys.mjs",
|
||||
"ChildCrashHandler.sys.mjs",
|
||||
"DelayedInit.jsm",
|
||||
"GeckoViewActorChild.sys.mjs",
|
||||
|
Loading…
Reference in New Issue
Block a user