Skip to content

Use L10n.prototype.getDirection rather than querying the DOM, when initializing the CommentManager instance - #20776

Merged
calixteman merged 1 commit into
mozilla:masterfrom
Snuffleupagus:commentManager-l10n-getDirection
Mar 2, 2026
Merged

calixteman merged 1 commit into
mozilla:masterfrom
Snuffleupagus:commentManager-l10n-getDirection

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

Hopefully I'm not misunderstanding why it was written like that, however using an existing method should be a tiny bit more efficient than querying the DOM.

…initializing the `CommentManager` instance

Hopefully I'm not misunderstanding why it was written like that, however using an existing method should be a tiny bit more efficient than querying the DOM.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 62.78%. Comparing base (afa8a07) to head (0d131f0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20776      +/-   ##
==========================================
- Coverage   62.79%   62.78%   -0.01%     
==========================================
  Files         169      169              
  Lines      119807   119807              
==========================================
- Hits        75233    75226       -7     
- Misses      44574    44581       +7     
Flag Coverage Ξ”
unittestcli 62.78% <ΓΈ> (-0.01%) ⬇️

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

β˜” View full report in Codecov by Sentry.
πŸ“’ 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.

@calixteman calixteman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thank you.

@calixteman
calixteman merged commit 0c29cc5 into mozilla:master Mar 2, 2026
10 checks passed
@Snuffleupagus
Snuffleupagus deleted the commentManager-l10n-getDirection branch March 3, 2026 10:18
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.

3 participants