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

@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 95.06173% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.07%. Comparing base (a8970fd) to head (e51c511).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-logic/process-profile.ts 95.55% 2 Missing ⚠️
src/profile-logic/processed-profile-versioning.ts 93.93% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6314      +/-   ##
==========================================
+ Coverage   84.03%   84.07%   +0.03%     
==========================================
  Files         354      354              
  Lines       38100    38250     +150     
  Branches    10662    10830     +168     
==========================================
+ Hits        32018    32159     +141     
- Misses       5654     5663       +9     
  Partials      428      428              

☔ 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 Outdated
Comment thread src/profile-logic/marker-schema.ts Outdated
Comment thread src/profile-logic/marker-schema.ts Outdated
@fatadel
fatadel force-pushed the issue-6290-follow-up branch from 17c4c8c to cf16594 Compare September 21, 2026 16:03
@fatadel
fatadel requested a review from canova September 21, 2026 16:04
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 force-pushed the issue-6290-follow-up branch from cf16594 to e51c511 Compare September 21, 2026 16:16

@canova canova left a comment

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.

Thanks!

}

export const extensionMarkerSchema: MarkerSchema = {
name: 'Extension',

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.

Nit: maybe something like ExtensionText, as it's still almost a Text marker but with extra extension information (so the name is not too generic).

}
}

function _processExtensionTextMarkerPayload(

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.

Nit: _maybeProcess.. would make it explicit that it might not if it's not an extension text marker.

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