Skip to content

Remove unneeded async functions when creating StructTreeRoot-data during saving (PR 19026) - #22015

Merged
Snuffleupagus merged 1 commit into
mozilla:masterfrom
Snuffleupagus:SaveDocument-rm-async-functions
Sep 29, 2026
Merged

Snuffleupagus merged 1 commit into
mozilla:masterfrom
Snuffleupagus:SaveDocument-rm-async-functions

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

These functions no longer need to be async after PR #19026, since no value is being returned now, and instead we can directly return the StructTreeRoot.createStructureTree respectively StructTreeRoot.prototype.updateStructureTree call since both methods (implicitly) return undefined.

…uring saving (PR 19026)

These functions no longer need to be `async` after PR 19026, since no value is being returned now, and instead we can directly return the `StructTreeRoot.createStructureTree` respectively `StructTreeRoot.prototype.updateStructureTree` call since both methods (implicitly) return undefined.
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Reference tests

Results for aea270c (run, references from mozilla/pdf.js.refs@27850b238a).

Platform Status Tests Total runtime Errors Different FBF No reference Report
Linux ✅ 1380 11m 33s 0 0 0 0
Windows ⚠️ 1380 15m 22s 0 1 0 0 view differences

The report is kept for 30 days and replaced by the next run.

@codecov-commenter

codecov-commenter commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.37%. Comparing base (b9d5e4f) to head (aea270c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #22015   +/-   ##
=======================================
  Coverage   90.37%   90.37%           
=======================================
  Files         269      269           
  Lines       67272    67272           
=======================================
+ Hits        60794    60797    +3     
+ Misses       6478     6475    -3     
Flag Coverage Δ
browsertest 66.22% <50.00%> (-0.02%) ⬇️
fonttest 8.95% <ø> (ø)
integrationtest 69.42% <0.00%> (+<0.01%) ⬆️
unittest 59.56% <100.00%> (+0.03%) ⬆️
unittestcli 58.06% <50.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.

sync-pdfs-for-pdf-js Bot pushed a commit to mozilla/pdf.js.refs that referenced this pull request Sep 24, 2026

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

@Snuffleupagus
Snuffleupagus merged commit c5d4809 into mozilla:master Sep 29, 2026
23 checks passed
@Snuffleupagus
Snuffleupagus deleted the SaveDocument-rm-async-functions branch September 29, 2026 11:06

This branch was successfully deployed

1 active deployment
sync_pdfs — aea270c8 Deployed Sep 24, 2026 by Snuffleupagus via request #149
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