Skip to content

Convert extension text markers to structured payloads - #6314

Open
fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6290-follow-up
Open

fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6290-follow-up

Conversation

@fatadel

@fatadel fatadel commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

Extension IDs are embedded in Text marker strings, so sanitization requires marker name-specific parsing. Structured extension marker payloads make the sensitive fields explicit and remove this special case.

Follow-up of #6291


Profile

Extension IDs are embedded in Text marker strings, so sanitization
requires marker name-specific parsing. Structured extension marker
payloads make the sensitive fields explicit and remove this special
case.
@fatadel
fatadel requested review from canova and mstange September 14, 2026 08:46
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.55172% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.90%. Comparing base (18e46d8) to head (17c4c8c).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-logic/process-profile.ts 95.91% 2 Missing ⚠️
src/profile-logic/processed-profile-versioning.ts 97.05% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6314      +/-   ##
==========================================
+ Coverage   83.84%   83.90%   +0.06%     
==========================================
  Files         352      353       +1     
  Lines       37807    37982     +175     
  Branches    10674    10718      +44     
==========================================
+ Hits        31698    31870     +172     
- Misses       5679     5683       +4     
+ Partials      430      429       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/types/markers.ts
};

export type ExtensionMarkerPayload = {
type: 'ExtensionParent' | 'ExtensionChild' | 'ExtensionSuspend';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason to use 3 different names for the marker type? If the structure is the same we should use a single name. This will allow us to use a single struct inside Firefox later.

tableLabel:
"{marker.data.extensionId}{marker.data.extensionId ? ', ' : ''}{marker.data.name}",
chartLabel:
"{marker.name} — {marker.data.extensionId}{marker.data.extensionId ? ', ' : ''}{marker.data.name}",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove {marker.name} - from chartLabel. It doesn't add a lot of value there as we can already see the name easily on the left side of the marker chart.

},
];

export const extensionMarkerSchemas: MarkerSchema[] = [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the comment I added in the types, we can reduce them into a single schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants