Skip to content

Add missing await when calling Chrome importer - #6346

Merged
mstange merged 3 commits into
firefox-devtools:mainfrom
mstange:push-ymulnotmqmko
Sep 23, 2026
Merged

mstange merged 3 commits into
firefox-devtools:mainfrom
mstange:push-ymulnotmqmko

Conversation

@mstange

@mstange mstange commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Main | Deploy preview

attemptToConvertChromeProfile is the only importer that returns a promise rather than a finished profile.

We were returning the promise without an await, so any exceptions from it would bypass our error wrapping and the console.error call.

attemptToConvertChromeProfile is the only importer that returns a 
promise rather than a finished profile.

We were returning the promise without an await, so any exceptions from
it would bypass our error wrapping and the console.error call.
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.11%. Comparing base (79903f3) to head (52baf1a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6346   +/-   ##
=======================================
  Coverage   84.11%   84.11%           
=======================================
  Files         356      356           
  Lines       38444    38444           
  Branches    10786    10786           
=======================================
  Hits        32339    32339           
  Misses       5676     5676           
  Partials      429      429           

☔ 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.

@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.

Ah, classic non-awaited promise inside a try footgun.. Does oxlint have a rule to catch it? It would be nice to have that rule if so.

@mstange
mstange enabled auto-merge September 23, 2026 13:58
@mstange

mstange commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

Does oxlint have a rule to catch it?

I'm not sure, need to check. Claude found this issue during the oxlint experiment but I don't know if it was from code inspection or from a lint.

@mstange
mstange merged commit 39e5bfe into firefox-devtools:main Sep 23, 2026
21 checks passed
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