Bug 1885309 - Support mjs files for zero_byte_load, r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D204635
This commit is contained in:
Kershaw Chang 2024-03-15 13:32:48 +00:00
parent 5338d8fd0f
commit 4043773256

View File

@ -890,7 +890,8 @@ static void RecordZeroLengthEvent(bool aIsSync, const nsCString& aSpec,
} else if (StringEndsWith(fileName, ".properties"_ns)) {
eventType = Telemetry::EventID::Zero_byte_load_Load_Properties;
} else if (StringEndsWith(fileName, ".js"_ns) ||
StringEndsWith(fileName, ".jsm"_ns)) {
StringEndsWith(fileName, ".jsm"_ns) ||
StringEndsWith(fileName, ".mjs"_ns)) {
// We're going to skip reporting telemetry on JS loads
// coming not from omni.ja.
// See Bug 1693711 for investigation into those empty loads.