Whenever a field of a filter (excluding notes and filter contents) is changed, a table cell is highlighted on the Special:AbuseFilter/history page using the .mw-abusefilter-history-changed class. This class, applied by AbuseFilterHistoryPager, adds a pink-ish background to indicate that a specific field has changed.
However, when a filter is protected, this class is incorrectly applied to cells in the "flags" column for every subsequent edit after the protection flag is set, even when no flags have actually changed.
Steps to replicate the issue (include links if applicable):
- Create a new filter with 'Details of this filter are hidden from users who cannot see protected variables' enabled (possible when using user_unnamed_ip)
- Make several edits to the filter, modifying only the filter notes or contents (not the flags, title or actions)
- Check the history of that filter.
What happens?:
Cells in the "flags" column are highlighted on every edit after the filter is protected, despite no actual change to flags.
What should have happened instead?:
Only cells for actually changed fields should be highlighted.
Other information (browser name/version, screenshots, etc.):
Firefox 139 on linux 6.12.26:


