Handle Text and Log marker payloads with their marker schema - #6247
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6247 +/- ##
==========================================
+ Coverage 83.58% 83.73% +0.14%
==========================================
Files 350 350
Lines 37498 37523 +25
Branches 10539 10543 +4
==========================================
+ Hits 31343 31420 +77
+ Misses 5728 5676 -52
Partials 427 427 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| for (const field of markerSchema.fields) { | ||
| if (field.key === fieldKey) { |
There was a problem hiding this comment.
This will iterate the schema fields for every sanitized text marker. In other places we precompute the string index fields per marker type, could we use the precomputed map instead?
| ): string | null { | ||
| if ('message' in data) { | ||
| if (!data.message) { | ||
| const message = resolveLogMarkerMessage(data.message, stringArray); |
There was a problem hiding this comment.
So here we check the payload whereas in the other place we check the schema. Should we check the schema here too?
There was a problem hiding this comment.
Yep, looks like I missed that one initially, updated!
Firefox now outputs the Text marker's `name` and the Log marker's `message` as unique strings, so the payload holds a string table index instead of the text itself. The two Text marker PII sanitizers and the MOZ_LOG formatting read those fields directly and threw an error. This patch fixes these issues by always looking at the marker schema and not having any arbitrary assumptions about some certain marker types. It was a bad idea to have these custom handlings in the past instead of relying on the marker schema in the first place.
1832c65 to
0c71bb8
Compare
|
Looking forward to this being merged. Currently trying to debug some issues on Nightly profiles, and extractGeckoLogs isn't working. |
|
@valenting Sorry for the issue! I'll deploy it soon. But note that the Firefox patch has been backed out in Nightly, so if you update your Nightly you should be able to use |
…ker changes are picked up in the frontends The Text marker's `name` and the Log marker's `message` are unique strings now, so their payloads hold a string table index instead of the text. But we realized that the frontend had some hardcoded assumptions about these marker types, and they weren't looking at the schema at all. That's fixed in firefox-devtools#6247. There is nothing to upgrade because the frontend reads the field format from the marker schema. But since older frontends read these two fields directly, this bump makes sure that they get updated. Bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2054010
…ker changes are picked up in the frontends The Text marker's `name` and the Log marker's `message` are unique strings now, so their payloads hold a string table index instead of the text. But we realized that the frontend had some hardcoded assumptions about these marker types, and they weren't looking at the schema at all. That's fixed in firefox-devtools#6247. There is nothing to upgrade because the frontend reads the field format from the marker schema. But since older frontends read these two fields directly, this bump makes sure that they get updated. Bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2054010
…ker changes are picked up in the frontends (#6252) The Text marker's `name` and the Log marker's `message` are unique strings now, so their payloads hold a string table index instead of the text. But we realized that the frontend had some hardcoded assumptions about these marker types, and they weren't looking at the schema at all. That's fixed in #6247. There is nothing to upgrade because the frontend reads the field format from the marker schema. But since older frontends read these two fields directly, this bump makes sure that they get updated. Bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2054010
Changes: [fatadel] Create the Network track from the timeline-network schema display location (#6224) [Markus Stange] Only call `getRawFrameTableBuilderWithExistingContents` once per symbolication batch. (#6233) [fatadel] Improve discoverability of downloading a local profile (#6216) [Nazım Can Altınova] Handle the cli daemon startup failures more gracefully with better errors (#6241) [Nazım Can Altınova] Add the ability to apply source maps from the CLI (#6229) [Nazım Can Altınova] Handle Text and Log marker payloads with their marker schema (#6247) [Nazım Can Altınova] Bump the Gecko profile version to make sure that the Text and Log marker changes are picked up in the frontends (#6252) [fatadel] Deactivate a menu button as soon as its panel is dismissed (#6251) [Nazım Can Altınova] 🔃 Sync: l10n -> main (August 10, 2026) (#6253) [Nazım Can Altınova] Bump profiler-cli version to 0.8.0 (#6254) And special thanks to our localizers: de: Ger de: Michael Köhler el: George kitsoukakis en-CA: chutten en-CA: Saurabh en-GB: Ian Neal es-CL: ravmn fy-NL, nl: Fjoerfoks fr: Théo Chevalier fy-NL: Fjoerfoks ia: Melo46 it: Francesco Lodolo [:flod] nl: Fjoerfoks ru: michellemelsspam ru: Valery Ledovskoy tr: giray tr: Selim Şumlu zh-TW: Pin-guang Chen
Main | Deploy preview
Fixes #6245
Firefox now outputs the Text marker's
nameand the Log marker'smessageas unique strings, so the payload holds a string table index instead of the text itself. The two Text marker PII sanitizers and the MOZ_LOG formatting read those fields directly and threw an error.This patch fixes these issues by always looking at the marker schema and not having any arbitrary assumptions about some certain marker types. It was a bad idea to have these custom handlings in the past instead of relying on the marker schema in the first place.