fix(chrome): 支持同一 Profile 下多个 Google 账号的独立导入 - #33
Merged
Mag1cFall merged 1 commit intoSep 25, 2026
Merged
Conversation
Owner
|
非常感谢,合入并进一步修复了。bf3a3b0
|
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.
Chrome 的同一个 Profile 登录多个 Google 账号时,原实现要求
token_service恰好只有一条记录,导致整个 Profile 被标记为不可导入并从管理页隐藏。本机复现为:有 5 条有效账号记录,但导入列表为空。本次修改从
Preferences.account_info按 Gaia ID 关联邮箱,为每个账号提供独立选择 ID;管理页提交明确的账号选择,实际导入按AccountId-<Gaia ID>精确读取对应凭据。默认不勾选账号,避免误导入全部账号。保留 CLI 按 Profile/邮箱选择的入口,并更新协议文档。验证:
验证范围:未执行真实账号导入、凭据解密或 Google 登录续签,因此尚未验证导入后的端到端认证。提交仅包含代码、合成测试数据与文档,不含本机账号、Cookie 或令牌。