Skip to content

fix(precondition): restore cached session on the captured origin - #225

Merged
shossain786 merged 1 commit into
masterfrom
fix/precondition-restore-origin
Oct 29, 2026
Merged

shossain786 merged 1 commit into
masterfrom
fix/precondition-restore-origin

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

A fresh driver starts on about:blank, where addCookie and localStorage access fail. SessionCache.restore swallowed those errors, so every test after the first on a thread ran logged out.

Fix: store the origin at capture; on restore, navigate there first if the browser is elsewhere.

Proof: new SessionCacheLiveTest (real headless Chrome) fails on master (cookie not restored) and passes with the fix. Unit suite: 812 passed, 0 failed. Skips when Chrome is unavailable.

Found while writing the SSO recipe (#224).

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shossain786
shossain786 merged commit a11083f into master Oct 29, 2026
2 checks passed
@shossain786
shossain786 deleted the fix/precondition-restore-origin branch October 29, 2026 02:54
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