Skip to content

Keep the cookies of every site a browser login went through - #281

Merged
xroche merged 4 commits into
masterfrom
browser-login-hosts
Nov 3, 2026
Merged

xroche merged 4 commits into
masterfrom
browser-login-hosts

Conversation

@xroche

@xroche xroche commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

A browser login that signs in through another site, such as a single sign-on service, now keeps that site's cookies too. The login window reports every site that answered it, redirects included. The GUI passes their hosts to the engine's new hts_bundle_from_paste_hosts(), so this needs engine 483d5d47 or later.

The DLL interface goes to version 4, so an old WhttBrowserLogin.dll beside the new program is refused rather than misread. The only workflow change is the selftest count, which goes from 92 to 100.

xroche and others added 4 commits November 4, 2026 00:23
The login window now reports each page it loaded, redirects included,
and the GUI passes their hosts to the engine's new
hts_bundle_from_paste_hosts(). A login that signs in on another site,
such as a single sign-on service, now keeps that site's cookies in the
bundle.

The DLL interface goes to version 4, because the request grows an
onPage callback. Cookies the engine leaves out are added to the count
the user is told about.

Needs engine 483d5d47 or later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B4P6j1Y145icu4vPHeRjJc
Signed-off-by: Xavier Roche <roche@httrack.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B4P6j1Y145icu4vPHeRjJc
Signed-off-by: Xavier Roche <roche@httrack.com>
The window now records a site when a redirect hop leaves it or when its
page completes, rather than when a navigation starts. The profile lasts
for the whole program run, so a site that never answered could still
hand over cookies an earlier login left there.

The DLL also keeps only the scheme and host of each page, which keeps
sign-in tokens out of memory and bounds the list. Static checks now pin
the three lines that carry the sites to the engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B4P6j1Y145icu4vPHeRjJc
Signed-off-by: Xavier Roche <roche@httrack.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B4P6j1Y145icu4vPHeRjJc
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche marked this pull request as ready for review November 3, 2026 23:44
@xroche
xroche merged commit bc9d547 into master Nov 3, 2026
15 checks passed
@xroche
xroche deleted the browser-login-hosts branch November 3, 2026 23:44
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