Skip to content

Remove the unused newAncestors set in XFAObject[_applyPrototype] - #22102

Open
irontaek wants to merge 1 commit into
mozilla:masterfrom
irontaek:rm-unused-newAncestors
Open

irontaek wants to merge 1 commit into
mozilla:masterfrom
irontaek:rm-unused-newAncestors

Conversation

@irontaek

@irontaek irontaek commented Oct 7, 2026

Copy link
Copy Markdown

_applyPrototype copies ancestors into a newAncestors set and adds proto to it, but nothing reads the set. Its two consumers, the recursive $resolvePrototypes calls, were changed to pass ancestors in 11573dd ("XFA - Implement usehref support"), and the declaration was left behind.

Cycle detection is unaffected: it still goes through ancestors in _getPrototype and at the top of _applyPrototype.

https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq

Its two consumers switched to `ancestors` in 11573dd (XFA - Implement usehref support), so the set has been built and never read since.
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Viewer preview

Commit c745c6f (build logs).

Viewer Build Preview
Modern (gulp generic) ✅ not published
Legacy (gulp generic-legacy) ✅ not published

🔒 A user with write access must approve this commit with the viewer-preview label to publish the viewers.

@codecov-commenter

codecov-commenter commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.19%. Comparing base (24de17e) to head (c745c6f).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #22102      +/-   ##
==========================================
- Coverage   90.22%   90.19%   -0.03%     
==========================================
  Files         275      275              
  Lines       67837    67835       -2     
==========================================
- Hits        61203    61187      -16     
- Misses       6634     6648      +14     
Flag Coverage Δ
browsertest 66.17% <ø> (-0.01%) ⬇️
fonttest 8.98% <ø> (ø)
integrationtest 69.27% <ø> (-0.74%) ⬇️
unittest 59.91% <ø> (-0.02%) ⬇️
unittestcli 58.30% <ø> (-0.02%) ⬇️

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.

This branch has not been deployed

No deployments
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