Skip to content

Retain browser guest references across view destruction - #3619

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-3618
Sep 14, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-3618

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The desktop browser manager repeatedly reads a view's guest getter after guest destruction can make it unavailable. Visibility and cleanup then throw before checking destruction. Reproduction report.

What changed

Retain the original WebContents in each browser entry and use it for existing lifecycle guards and operations.

How you verified

Three fresh regression cases for visibility, detach, and guest destruction fail on trusted main in two checkouts and pass with the fix. Turbo desktop tests: 325 passed, one skipped. Turbo desktop typecheck and build passed. git diff --check passed. Two files; 55 additions + 30 deletions = 85 changed text lines. Native packaged-app timing was not tested.

Fixes #3618

AGENT GENERATED

@SawyerHood
SawyerHood merged commit 186e388 into main Sep 14, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-3618 branch September 14, 2026 18:21
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.

Desktop uncaught TypeError: tab webContents is undefined in withEntry/setVisible

1 participant