Filing a task retroactively since the first attempt failed and we've identified some prep work that seems worth tracking here for easy reference.
Prior work in 2022 before this task was filed:
- rMW3fdfef96e4ee: context: Add a cached RequestContext::getActionName method https://gerrit.wikimedia.org/r/737160
- rMWd7beb0e4ec7c: MediaWiki: Don't eagerly initialize action name https://gerrit.wikimedia.org/r/808230
- rMWd4ce0f3255ad: Setup: Promote clearActionName log message to runtime warning https://gerrit.wikimedia.org/r/810976 - reverted due to the warning (correctly) identifying a violation in VisualEditor, as reported in T312838: clearActionName warning is blocking CI
Prior ideas in 2020: