Repository navigation
fix(browser): bulk clear cookies during native import - #13966
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCookie imports now use snapshot-based bulk cookie clearing through 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f1648197-cfdf-412a-9933-a54929562838
📒 Files selected for processing (2)
src/main/browser/browser-cookie-import-google-exclusion.test.tssrc/main/browser/browser-cookie-import.ts
Independent Grok Electron/CDP QA — final HEAD
|
| Scenario | Result | Multi-toast visibility |
|---|---|---|
| (1) Ordinary success, no Google skip | 1× success only — “Imported 12 cookies from Chrome (Default) into Default.” | n/a (single) |
(2) Success + googleCookiesSkipped |
success + separate Google direct-sign-in warning (DOM order: Google front/newest, success behind) | Native hover revealed both (data-expanded=true, both opacity 1) |
| (3) Restart-fallback degraded + Google | 2× warning only (partial restart + Google); no false success | Native hover revealed both |
| (4) Restart-fallback total failure | 1× warning total-failure copy; no success | n/a (single) |
Console: no cookie-import errors (unrelated React DevTools / tooltip / React Grab warnings only).
Screenshots (native-rendered only)
| Ordinary success | Success + Google sign-in warning (hover-expanded) |
|---|---|
![]() |
![]() |
| Degraded restart + Google, no success (hover-expanded) | Restart total failure |
|---|---|
![]() |
![]() |
Local artifacts (not committed): qa-artifacts/sta-3960-grok-final/
* fix(browser): bulk clear cookies during native import * fix(browser): separate Google cookie import warning * fix(browser): report encrypted Google cookie exclusions * fix(browser): skip key lookup for excluded cookies * test(browser): cover excluded-cookie key bypass * perf(browser): keep plaintext key scan cheap










Summary
Performance
Real Electron cookie-store benchmark (old selective remove → new bulk clear + Google restore):
The preserved Google cookie survived every benchmark case.
Validation
Fixes STA-3960.
Regression from #13670.