You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Target creation failure drops keyboard focus and does not announce the error #3710
On target creation failure, focus falls to BODY and assistive technology is not notified of the visible error. The invalid field is not marked invalid.
Steps/Code to Reproduce
Open Registry > Targets > New Target, select HTTPTarget, enter not an HTTP request in Http Request, focus Create Target and press Space. Inspect document.activeElement and the error's accessibility attributes.
Expected Results
Keep focus on the submit control or move it to an accessible error summary/invalid field, and announce the error using an alert/live region.
Actual Results
Focus is BODY. Error has role=group, no aria-live/live ancestor, and no focusable summary; Http Request lacks aria-invalid. The only populated polite live region describes the selected target, not the failure.
Proposed fix/regression: focus and announce the error and associate it with the field; test keyboard submission and accessibility semantics after a failed create.
Screenshots
The screenshot is retained as a local recovery artifact, not attached here.
Versions
Tested commit d3446e0, PyRIT 1.2.0.dev0, offline local-backend/browser scope. Evidence: files/evidence/round2/target-error-focus.json and target-error-accessibility.json; local paths are not attachments.
Roman Lutz (@romanlutz) Okay, understood, thanks for letting me know. I've actually made a short explainer video of my solution in case it's useful as context. I'm more than willing to keep contributing to PyRIT. Is there a particular issue you'd like tackled?
Activity
Merge microsoft/PyRIT main into fix/3710-create-target-error-focus
romanlutz commentedon Nov 5, 2026
Darrell Chee (@darrellchee) there's already a PR so I'll close yours.
Merge microsoft/PyRIT main into fix/3710-create-target-error-focus
darrellchee commentedon Nov 7, 2026
Roman Lutz (@romanlutz) Okay, understood, thanks for letting me know. I've actually made a short explainer video of my solution in case it's useful as context. I'm more than willing to keep contributing to PyRIT. Is there a particular issue you'd like tackled?
Video:
focus-off-the-page-fixing-pyrit-3710_169.mp4