mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1716774 - Send correct telemetry for buildid mismatch false-positive r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D118009
This commit is contained in:
parent
97adc8ac97
commit
859e2bdc3d
@ -87,8 +87,8 @@ add_task(async function test_browser_crashed_false_positive_event() {
|
||||
|
||||
is(
|
||||
getFalsePositiveTelemetry(),
|
||||
undefined,
|
||||
"Build ID mismatch false positive count should be undefined"
|
||||
1,
|
||||
"Build ID mismatch false positive count should be 1"
|
||||
);
|
||||
});
|
||||
|
||||
@ -139,13 +139,13 @@ add_task(async function test_browser_restartrequired_event() {
|
||||
|
||||
is(
|
||||
getFalsePositiveTelemetry(),
|
||||
1,
|
||||
"Build ID mismatch false positive count should be 1"
|
||||
undefined,
|
||||
"Build ID mismatch false positive count should be undefined"
|
||||
);
|
||||
});
|
||||
|
||||
add_task(async function test_browser_crashed_no_platform_ini_event() {
|
||||
info("Waiting for oop-browser-crashed event.");
|
||||
info("Waiting for oop-browser-buildid-mismatch event.");
|
||||
|
||||
Services.telemetry.clearScalars();
|
||||
is(
|
||||
@ -185,7 +185,7 @@ add_task(async function test_browser_crashed_no_platform_ini_event() {
|
||||
|
||||
is(
|
||||
getFalsePositiveTelemetry(),
|
||||
1,
|
||||
"Build ID mismatch false positive count should be 1"
|
||||
undefined,
|
||||
"Build ID mismatch false positive count should be undefined"
|
||||
);
|
||||
});
|
||||
|
@ -3756,20 +3756,17 @@ void nsFrameLoader::MaybeNotifyCrashed(BrowsingContext* aBrowsingContext,
|
||||
if (changedOrError.isErr()) {
|
||||
NS_WARNING("Error while checking buildid mismatch");
|
||||
eventName = u"oop-browser-buildid-mismatch"_ns;
|
||||
#if defined(MOZ_TELEMETRY_REPORTING)
|
||||
sendTelemetry = true;
|
||||
#endif // defined(MOZ_TELEMETRY_REPORTING)
|
||||
} else {
|
||||
bool aChanged = changedOrError.unwrap();
|
||||
if (aChanged) {
|
||||
NS_WARNING("True build ID mismatch");
|
||||
eventName = u"oop-browser-buildid-mismatch"_ns;
|
||||
#if defined(MOZ_TELEMETRY_REPORTING)
|
||||
sendTelemetry = true;
|
||||
#endif // defined(MOZ_TELEMETRY_REPORTING)
|
||||
} else {
|
||||
NS_WARNING("build ID mismatch false alarm");
|
||||
eventName = u"oop-browser-crashed"_ns;
|
||||
#if defined(MOZ_TELEMETRY_REPORTING)
|
||||
sendTelemetry = true;
|
||||
#endif // defined(MOZ_TELEMETRY_REPORTING)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user