# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
document_site_origins:
type: custom_distribution
description: >
When a document is loaded, report the
number of [site origins](https://searchfox.org/
mozilla-central/rev/
3300072e993ae05d50d5c63d815260367eaf9179/
caps/nsIPrincipal.idl#264) of the entire browser
if it has been at least 5 minutes since last
time we collect this data.
(Migrated from the geckoview metric of the same name).
range_min: 0
range_max: 100
bucket_count: 50
histogram_type: exponential
unit: number of site_origin
telemetry_mirror: FX_NUMBER_OF_UNIQUE_SITE_ORIGINS_ALL_TABS
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1589700
- https://bugzilla.mozilla.org/show_bug.cgi?id=1877576
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1589700#c5
notification_emails:
- sefeng@mozilla.com
- perf-telemetry-alerts@mozilla.com
expires: never
per_document_site_origins:
type: custom_distribution
description: >
When a document is unloaded, report the highest number of
[site origins](https://searchfox.org/
mozilla-central/rev/
3300072e993ae05d50d5c63d815260367eaf9179/
caps/nsIPrincipal.idl#264) loaded simultaneously in that
document.
(Migrated from the geckoview metric of the same name).
range_min: 0
range_max: 100
bucket_count: 50
histogram_type: exponential
unit: number of site origins per document
telemetry_mirror: FX_NUMBER_OF_UNIQUE_SITE_ORIGINS_PER_DOCUMENT
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1603185
- https://bugzilla.mozilla.org/show_bug.cgi?id=1877576
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1603185#c13
notification_emails:
- beth@mozilla.com
- perf-telemetry-alerts@mozilla.com
expires: never