Skip to content

fix(pat-inject): Don't break when no form can be found in listenForFormReset. - #1267

Merged
thet merged 1 commit into
masterfrom
harden-formreset
Nov 26, 2026
Merged

thet merged 1 commit into
masterfrom
harden-formreset

Conversation

@thet

@thet thet commented Oct 9, 2025

Copy link
Copy Markdown
Member

No description provided.

…reated.

Non-existing targets are only created for id selectors. For other
selectors `createTarget` returned `null`, but `ensureTarget` still
reported success, which led to a TypeError later on when accessing
`cfg.$target`. Now the configuration verification fails and the
injection is aborted early, before any request is made.

Also log the selector when a target cannot be created.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@thet
thet merged commit 587e551 into master Nov 26, 2026
1 check passed
@thet
thet deleted the harden-formreset branch November 26, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant