Skip to content

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

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

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

🗑️ Viewer previews removed.

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

@irontaek

This comment was marked as spam.

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

@Snuffleupagus friendly ping when you have a moment. newAncestors in XFAObject[_applyPrototype] is built and extended but never read, and it's still there on current master. This PR just removes it, with no behavior change.

If you expect specific open-source contributors to review fully AI generated patches, please consider sponsoring those people to help offset the significant additional burden/work that AI generated content places upon them.

@irontaek

Copy link
Copy Markdown
Author

Sorry for the direct ping, that was out of line. Closing this, since a dead-code cleanup isn't worth your review time.

@irontaek irontaek closed this Nov 21, 2026
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