Closed Bug 2092324 Opened 16 days ago Closed 16 days ago

Unhandled NS_ERROR_NOT_AVAILABLE rejection from submitAndGetUntrustedModulePayload in UntrustedModulesPing fails Windows browser-chrome tests

Categories

(Toolkit :: Telemetry, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

TelemetryUntrustedModulesPing.notify() (toolkit/components/telemetry/pings/UntrustedModulesPing.sys.mjs) calls Services.telemetry.submitAndGetUntrustedModulePayload() and ignores the returned promise. MultiGetUntrustedModulesData::Serialize rejects it with NS_ERROR_NOT_AVAILABLE whenever no untrusted module load event was staged, which is the usual case.

The update timer first fires about 30 seconds after startup. On Windows, whichever mochitest is running at that moment fails with uncaught rejection: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "<unknown>" data: no]. This is the main intermittent of browser_geolocation_indicator.js (about 40% on Windows debug). It also fails browser_check_identity_state.js (13 failures on Windows debug), consistently in the upcoming browser-chrome-repeat jobs.

The fix handles the rejection in notify(): it ignores NS_ERROR_NOT_AVAILABLE and logs any other error.

submitAndGetUntrustedModulePayload rejects with NS_ERROR_NOT_AVAILABLE when no untrusted module load event was collected, which is the common case. Left unhandled, it fails whichever browser-chrome test is running on Windows when the update timer first fires, about 30s after startup.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5f0d18483fd6 https://hg.mozilla.org/integration/autoland/rev/cb47ef269733 Handle the untrusted modules payload rejection in UntrustedModulesPing, r=janerik.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: