Closed Bug 1894061 Opened 9 months ago Closed 9 months ago

Session restore telemetry can_load extra isn't working correctly and causes error console spam

Categories

(Firefox :: Session Restore, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
127 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox125 --- unaffected
firefox126 --- verified
firefox127 --- verified

People

(Reporter: Gijs, Assigned: kcochrane)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-firefox-view])

Attachments

(1 file)

I've recently started seeing Extra properties should have string values. in my browser console after startup (on local nightly builds - possibly also distributed nightly builds but I can't recall off-hand).

That's coming from https://searchfox.org/mozilla-central/rev/2e7374599f4020d0490ec8c5e877c179c9e153c9/toolkit/components/telemetry/core/TelemetryEvent.cpp#848 so it's a telemetry event where some of the extra bits are invalid.

Standard8 did some digging on matrix:

Gijs: I see it as well. I quickly added debug and the first three params to RecordEvent are session_restore backup_can_be_loaded session_file
Gijs: https://searchfox.org/mozilla-central/rev/2e7374599f4020d0490ec8c5e877c179c9e153c9/browser/components/sessionstore/SessionFile.sys.mjs#358 maybe? That's a boolean, not a boolean string...
Its definitely the can_load key
Oh, that's subtle

Kelly, would you mind taking a look?

Flags: needinfo?(kcochrane)

(looks like it should be (!corrupted).toString() instead of !corrupted.toString(), maybe?)

Set release status flags based on info from the regressing bug 1874742

Assignee: nobody → kcochrane
Status: NEW → ASSIGNED
Flags: needinfo?(kcochrane)
Severity: -- → S2
Priority: -- → P1
Whiteboard: [fidefe-firefox-view]
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5502377f2629 Resolving 'can_load' extra key error for session restore telemetry causing error console spam r=Gijs,sessionstore-reviewers,sfoster
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

The patch landed in nightly and beta is affected.
:kcochrane, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox126 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(kcochrane)

Comment on attachment 9399227 [details]
Bug 1894061 - Resolving 'can_load' extra key error for session restore telemetry causing error console spam r?Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: console error spam can occur for session restore telemetry
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Description
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very small syntax fix
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(kcochrane)
Attachment #9399227 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9399227 [details]
Bug 1894061 - Resolving 'can_load' extra key error for session restore telemetry causing error console spam r?Gijs

Approved for 126.0b9

Attachment #9399227 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I was able to replicate the issue on an affected Firefox Nightly build from 2024-04-29, using macOS 12.6.6, while following the steps described in Comment 0.
Verified as fixed on Firefox Beta 126.0b9, build ID 20240501222611 (Treeherder build) and on Firefox Nightly 127.0a1, build ID 20240502091633, using macOS 12.6.6, Windows 11 and Ubuntu 22.04.
"Extra properties should have string values." is no longer displayed in the browser console after launching the browser.
If there are any other scenario that should be checked here, please let us know! Thanks.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: