Skip to content

feat: add webContents.caretBrowsingEnabled - #53035

Merged
jkleinsc merged 1 commit into
44-x-yfrom
trop/44-x-y-bp-feat-add-webcontents-caretbrowsingenabled-1787184354760
Aug 24, 2026
Merged

jkleinsc merged 1 commit into
44-x-yfrom
trop/44-x-y-bp-feat-add-webcontents-caretbrowsingenabled-1787184354760

Conversation

@trop

@trop trop Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Backport of #52696

See that PR for details.

Notes: Added webContents.caretBrowsingEnabled for toggling caret browsing in a WebContents.

@trop trop Bot mentioned this pull request Aug 20, 2026
7 tasks done
@trop trop Bot added 44-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Aug 20, 2026
@jkleinsc
jkleinsc merged commit c162f60 into 44-x-y Aug 24, 2026
149 of 151 checks passed
@release-clerk

release-clerk Bot commented Aug 24, 2026

Copy link
Copy Markdown

Release Notes Persisted

Added webContents.caretBrowsingEnabled for toggling caret browsing in a WebContents.

@jkleinsc
jkleinsc deleted the trop/44-x-y-bp-feat-add-webcontents-caretbrowsingenabled-1787184354760 branch August 24, 2026 13:59
dsanders11 pushed a commit to electron/trop that referenced this pull request Aug 25, 2026
…ting them (#423)

* fix: supersede completed backport approval check runs instead of updating them

The Checks API treats a completed check run as terminal: a PATCH asking to
move it back to 'queued' succeeds and applies the output, but silently keeps
the old status and conclusion. The dedupe path added in #422 therefore could
not un-green a run that had already concluded success - the labeled-event
reset only rewrote the output text, leaving a green check whose output read
'Needs Backport Approval' (observed on electron/electron#53035).

- queueBackportApprovalCheck now only updates an existing run in place while
  it is still pending; a completed run is superseded by a fresh queued run,
  which branch protection consults as the latest run per name.
- The opened-event evaluation no longer concludes 'not required' for
  backport PRs authored by trop itself: trop adds labels in a separate API
  call shortly after creating the PR, so the live labels are still empty in
  that window. The check stays queued until the labeled events that follow
  trop's own label writes settle the verdict.

* fix: keep opened backport approval check pending for all declared backports

The opened-event guard special-cased backports authored by trop's bot
user, but the window it protects against is not author-specific: a
declared backport's labels are always written by trop itself -
backportImpl labels trop-created backports in a separate API call after
opening them, and updateManualBackport labels manually-opened backports
with at least the base-ref label - so labels can land after the opened
delivery for any author, and webhook deliveries can be delayed or
reordered besides.

Gate the guard on the author-agnostic property that actually matters:
whether the PR body declares 'Backport of #N'. Every declared backport
is guaranteed at least one trop-written label and therefore a labeled
event that settles the verdict, so opened can safely leave the check
pending. PRs without a declaration (e.g. fast-track PRs targeting
release branches) get no guaranteed labeled event and would hang queued
forever, so opened still concludes 'not required' for them.

Also skip the re-queue when the check has already concluded: a labeled
delivery processed before a late opened delivery has already settled
the verdict from the same live labels, and superseding that concluded
run would leave a queued check no follow-up event ever completes.

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

44-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants