-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing from Muon stops when an error occurs #2438
Comments
Update from b-l Beta when b-l Release is running
If any of the users reported that b-c launched, but nothing was imported, this could be the reason. |
@btlechowski 's scenario above MAY be the reason a lot of folks didn't have the import run automatically There is a potential race-condition because the importer requires Muon Brave to be closed:
If step 2 ran the importer too quickly, it could have hit a lock. If that happens, I'm not sure what the user experience looks like. They may have been shown the "Please close Brave and try again" or maybe it fails silently |
@btlechowski @bsclifton b-l must be closed for the b-c importer to run; some of the state files (e.g. sqlite databases) require exclusive access, and I generally think it would be risky to parse any of the state files in b-c while b-l is running: what if the state files are updated on disk partway through the import? When a user manually initiates import in b-c from b-l, the b-l user data directory is examined for lock files that indicate whether b-l is currently running; if so, the user is prompted to quit b-l, and import is blocked from continuing until b-c can verify that b-l has indeed been quit. See brave/brave-core#245 for more info. When an automatic import is initiated in b-c from b-l, i.e. via Note that keychain access prompts are still shown on some platforms, which I expect might be confusing; that is because they are triggered by a distant portion of the codebase that does not know how to check the headlessness of the ExternalProcessImporterHost. It was my understanding that the b-l updater would take care of shutting down b-l before it calls b-c with |
This issue was split into specific sub-issues, which, to the best of my knowledge (due to the limited information we had from some of the reports) now comprehensively cover everything described in this issue in a more granular and detailed manner. Therefore, I think it would make sense to:
Does that sound appropriate? cc @bsclifton @bbondy @rebron @kjozwiak @sri |
Closing per comment above by @garrettr - the specific issues should already have test plans / labels |
Description
There are a few known scenarios where the import will abort and no further actions happen. For reference, here is the order the import executes in:
Known failure scenarios
Scenario M - Upgrade from muon but then deny keychain access in b-c
(reported by @LaurenWags)
—> b-c launches, the following are imported: history, bookmarks
the following are NOT imported: Passwords, Cookies, Stats, Rewards
additionally, due to ‘Brave Starts With’ setting, open windows/tabs were not imported which was expected.
Bookmark import fails scenario
(reported by several folks on Reddit; need help finding an example session with bad bookmarks)
The text was updated successfully, but these errors were encountered: