Skip to content

fix: validate dock_state_ against allowlist before JS execution - #50667

Merged
ckerr merged 1 commit into
39-x-yfrom
trop/39-x-y-bp-fix-validate-dock_state_-against-allowlist-before-js-execution-1775230767547
Apr 3, 2026
Merged

ckerr merged 1 commit into
39-x-yfrom
trop/39-x-y-bp-fix-validate-dock_state_-against-allowlist-before-js-execution-1775230767547

Conversation

@trop

@trop trop Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #50646

See that PR for details.

Notes: none

The dock_state_ member was concatenated directly into a JavaScript
string and executed via ExecuteJavaScript() in the DevTools context.

We should validate against the four known dock states and fall back
to "right" for any unrecognized value for safety

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested review from a team and codebytere April 3, 2026 15:39
@trop trop Bot added 39-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 3, 2026
@ckerr
ckerr merged commit 2046ae8 into 39-x-y Apr 3, 2026
113 of 116 checks passed
@ckerr
ckerr deleted the trop/39-x-y-bp-fix-validate-dock_state_-against-allowlist-before-js-execution-1775230767547 branch April 3, 2026 20:45
@release-clerk

release-clerk Bot commented Apr 3, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

39-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant