Skip to content

docs: clarify debugger.sendCommand timing and empty-result behavior - #53605

Merged
MarshallOfSound merged 3 commits into
44-x-yfrom
trop/44-x-y-bp-docs-clarify-debugger-sendcommand-timing-and-empty-result-behavior-1788647069516
Sep 6, 2026
Merged

MarshallOfSound merged 3 commits into
44-x-yfrom
trop/44-x-y-bp-docs-clarify-debugger-sendcommand-timing-and-empty-result-behavior-1788647069516

Conversation

@trop

@trop trop Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Backport of #53114

See that PR for details.

Notes: none

trop Bot and others added 3 commits September 5, 2026 22:24
Documents two long-standing but undocumented behaviors of
debugger.sendCommand():

- Commands sent before the target has navigated may not resolve
  until navigation occurs.
- Commands whose protocol response has no `result` data resolve
  with an empty object (`{}`), not `null` or `undefined`.

Both behaviors were originally reported in #14810 and #14811
(closed as working-as-intended) and re-verified against current
Electron's Promise-based sendCommand API before writing this up.

Fixes #14822

Co-authored-by: JACOBIAN01 <[email protected]>
…correctly

The disable comment wasn't prefixed with `>`, which split the blockquote
into two separate blocks on GitHub's renderer instead of one alert box.
Verified via the markdown render API before and after.

Co-authored-by: JACOBIAN01 <[email protected]>
@trop trop Bot added 44-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 5, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 6, 2026 02:17
@MarshallOfSound
MarshallOfSound merged commit 949f5f5 into 44-x-y Sep 6, 2026
61 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/44-x-y-bp-docs-clarify-debugger-sendcommand-timing-and-empty-result-behavior-1788647069516 branch September 6, 2026 02:18
@release-clerk

release-clerk Bot commented Sep 6, 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

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

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant