Postponed
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2026 at 15:45 UTC
Updated:
28 Sep 2026 at 09:45 UTC
Jump to comment: Most recent
Just found this while converting a contrib test where the assertions were getting page elements using CSS IDs, and those IDs were being made in the SUT using \Drupal\Component\Utility\Html.
HttpKernelUiHelperTrait needs to call Html::resetSeenIds() after a request (or we need to fix \Drupal\Component\Utility\Html to it works for this and for persistent servers).
For main requests, reset seen IDs and disable AJAX mode at the start of DrupalKernel::handle(), before middleware runs. Preserve subrequests' shared ID namespace.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joachim commentedComment #3
ptmkenny commentedComment #4
ptmkenny commentedAdded a proposed fix for this and updated the IS to describe the fix.
This issue is one of the several necessary fixes to use Drupal with FrankenPHP worker mode.
AI disclosure: I used AI to help prepare the IS and MR (Astra and Opus 5.5).
Comment #6
ptmkenny commentedComment #7
joachim commentedUnsubscribing due to use of LLMs.
Comment #8
ptmkenny commented@mstrelan Sure, I'll postpone this on the ResetInterface.