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:
Makoto Kato 2023-07-06 01:04:51 +00:00
parent 7dc93a32c1
commit 0266d92dba
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -6,7 +6,7 @@
EXTRA_JS_MODULES += [
"AndroidLog.jsm",
"BrowserUsageTelemetry.jsm",
"BrowserUsageTelemetry.sys.mjs",
"ChildCrashHandler.sys.mjs",
"DelayedInit.jsm",
"GeckoViewActorChild.sys.mjs",