rMW resources/src/mediawiki.action/mediawiki.action.view.redirect.js has a lot of compatibility checks/hacks that are no longer necessary:
- Supporting browsers that don’t support History.replaceState(). The last Grade A browsers without History.replaceState() became Grade C in 2017 (T128115).
- Firefox <33 jumping support. Firefox <39 is not supported at all (not even Basic support) since April 2022 (T297313). The feature tests don’t seem to catch it, so JS may load there, but removing the jumping support won’t cause runtime errors, only a somewhat degraded UX (no jump to section). Since these versions are explicitly unsupported, I think this is acceptable.
- Supporting Safari 0.x–2.x (WebKit <420). I couldn’t find out when was support for such ancient Safaris dropped, probably they have been unsupported ever since there are browser support was formalized. (The hack was added in 4dc8d4a3f52, more than 15 years ago, mentioning that the nightlies were already fixed by then…)