Why:
* Special:DeletedContributions is built entirely separately
from Special:Contributions and lacks many of the features
that Special:Contributions has, such as search form filters.
* As part of the temporary accounts project, a special page
showing deleted contributions for temporary accounts was
added via the CheckUser extension (T363362), which has
feature parity with Special:Contributions. This was achieved
by factoring out abstract base classes for contributions
pages.
* SpecialDeletedContributions and DeletedContribsPager should
be updated to make use of this shared functionality, to
avoid confusion for users switching between these various
pages.
What:
* Update DeletedContribsPager to extend ContributionsPager.
* Two hooks were run from DeletedContribsPager:
- DeletedContribsPager__reallyDoQuery
- onDeletedContributionsLineEnding
Run both from ContributionsPager instead, when in archive
mode, similar to their normal-mode counterpart hooks.
* Add a basic test to ensure that Special:DeletedContributions
doesn't encounter an error while building the pager.
* SpecialDeletedContributions will be updated in a separate
patch.
Bug: T370438
Change-Id: Ifa266898781449a1ebd99bcf3e72182899c2452d