Repository navigation
feat(browser): offer sign-ins and history from another browser on the pane - #550
Merged
Merged
Conversation
# Conflicts: # apps/desktop/src/plugin_host/native/browser.rs # apps/desktop/src/surfaces/browser/mod.rs
…em off the UI thread (READER-12 #415)
… pane, as official's SignInOffer
|
PR test build retired — merged into |
… the new tab page has the card
…t-banner-2 # Conflicts: # apps/desktop/src/plugin_host/native/browser/cookies.rs # apps/desktop/src/surfaces/browser/cookie_import.rs # crates/browser-pane/src/cookies/format.rs # plugins/browser/init.luau # plugins/browser/locales/en.json
…n-in offer never stalls a draw
…/browser/mod.rs stays under 800 lines
Member
Author
|
Smoke ( PR CI build 6e85ed3 (contains #415): Merged head 50b4d9d (dev merged in, local build): 9/9 in 68.4s, same nine lines. |
This was referenced Nov 21, 2026
Hona
added a commit
that referenced
this pull request
Nov 22, 2026
…fficial, not at the pane's bottom (#712) * fix(browser): the new tab page's prompt sits 80 pt below the top as official, not at the pane's bottom Since #550 the new tab page put ui.spacer({ w = 0, h = 0 }) above the prompt when no sign-in offer shows. ui.spacer is flexible space in a stack, so it took the column's free height and pushed 'Open a page' (and the recent-visits list) to the bottom of the pane. Official (panel.tsx:1473-1491) renders the offer card only while it offers and puts the prompt pt-20 (80 px) below the top. The page now holds the offer only when there is one. * fix(browser): key the new tab page's prompt and recent-visits columns so they keep their identity when the offer goes READER-12b on afb04a4: without keys the column moves from child 2 to child 1 when the sign-in offer goes away (Not now, or the confirmation closes) and is rebuilt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports official's first-run sign-in offer,
SignInOffer(packages/gui-plugins/src/browser/import-prompt.tsx:16-265atdb2d889c), to the browser pane. Stacked on #415 (cookie-file import): until #415 merges, this PR also shows its commits. It reuses #415's import path (host validation, batches, off the UI thread).Where and when (official)
panel.tsx:1474-1477).panel.tsx:1357-1360).welcomedis false (import-prompt.tsx:100) and another browser is installed with a profile.decline,:81) or an import that brought cookies (jobs.ts:114-115) setswelcomed.CONFIRMATION_MS) or when closed. The pane's page reloads when cookies came in (panel.tsx:594-598).Text and buttons (official keys)
signins.bar("Bring your sign-ins and history from {{browser}}").signins.action, contrast).signins.other): the other browsers, then More import options (signins.more, which opens Settings > Browser).signins.dismiss, "Not now").signins.title("Bring your sign-ins and history").jobs.ts:186-276:signins.imported.*,signins.imported.partial.named,signins.protected.named,signins.failed.{key,access,read,storage},signins.failed.locked.named, and on macOSsignins.failed.keychain.import-prompt.tsx:84-85).How the import runs
Browser:ImportSignInsAsync(source, profile, sites?): only the built-in browser plugin can call it. Profiles are given as ids fromlist_sources, never as paths.read_source_cookiesreads the other browser's cookies on a worker thread (it copies databases and may ask the OS key store).prepare_for_import, so only plain hostnames and IP literals pass, then batches of at most 1,000 cookies / ~2 MiB, then the engine, whoseto_cef_cookiechecks the host again.writeCookies(profile/import.ts:10-38); Chromium evicts past its own limits. Recorded inours.md.Not in this PR