Skip to content

[api-minor] Convert getOpenAction to return data in a Map#21621

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:openAction-Map
Jul 23, 2026
Merged

[api-minor] Convert getOpenAction to return data in a Map#21621
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:openAction-Map

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

Compared to regular Objects there's a number of advantages to using Maps:

  • They support proper iteration.
  • They have a simple way to check for the existence of data.
  • They have a simple/efficient way to check the number of elements.

If this functionality was added today, I cannot imagine that we'd choose an Object for this data.

Compared to regular Objects there's a number of advantages to using Maps:
 - They support proper iteration.
 - They have a simple way to check for the existence of data.
 - They have a simple/efficient way to check the number of elements.

If this functionality was added today, I cannot imagine that we'd choose an Object for this data.
@codecov-commenter

codecov-commenter commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.85%. Comparing base (0c8f670) to head (c474a97).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21621   +/-   ##
=======================================
  Coverage   89.85%   89.85%           
=======================================
  Files         263      263           
  Lines       66769    66769           
=======================================
+ Hits        59992    59996    +4     
+ Misses       6777     6773    -4     
Flag Coverage Δ
browsertest 66.56% <0.00%> (ø)
fonttest 9.05% <ø> (ø)
integrationtest 69.27% <83.33%> (+0.01%) ⬆️
unittest 57.50% <80.00%> (+<0.01%) ⬆️
unittestcli 56.45% <80.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@timvandermeij timvandermeij left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

r=me, with passing browser tests. Thanks!

@timvandermeij

Copy link
Copy Markdown
Collaborator

/botio browsertest

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/5101c374aef39fa/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @timvandermeij received. Current queue size: 0

Live output at: http://54.193.163.58:8877/da2f74a7f098306/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5101c374aef39fa/output.txt

Total script time: 18.32 mins

  • Regression tests: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/da2f74a7f098306/output.txt

Total script time: 23.70 mins

  • Regression tests: Passed

@timvandermeij
timvandermeij merged commit e58091a into mozilla:master Jul 23, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants