Unhandled NS_ERROR_NOT_AVAILABLE rejection from submitAndGetUntrustedModulePayload in UntrustedModulesPing fails Windows browser-chrome tests
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
| 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.
| Assignee | ||
Comment 1•16 days ago
|
||
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.
Comment 3•16 days ago
|
||
| bugherder | ||
Comment 4•16 days ago
|
||
| bugherder | ||
Updated•2 days ago
|
Description
•