-
Notifications
You must be signed in to change notification settings - Fork 10
Enterprise: Check -felt for profile selection only on startup #334
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
Enterprise: Check -felt for profile selection only on startup #334
Conversation
toolkit/xre/nsAppRunner.cpp
Outdated
| file.forget(aRootDir); | ||
| localDir.forget(aLocalDir); | ||
| // Background tasks never use profiles known to the profile service. | ||
| aProfile = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nsIToolkitProfile** aProfile so this probably doesn't do what you want. But how did we get here....given that this should have been copypasted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may have mistakenly broke it
|
|
||
| NS_ENSURE_SUCCESS(rv, rv); | ||
|
|
||
| if (didCreate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're now bypassing this logic and the checks that follow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were never changing either aDidCreate nor aIsResetting, so I dont think we regress anything here
Doing it in SelectStartupProfile() was somehow hitting race condition leading to a segfault while running some tests, the stack including XPCOM version of it.
6795db2 to
b94dfac
Compare
Doing it in SelectStartupProfile() was somehow hitting race condition leading to a segfault while running some tests, the stack including XPCOM version of it.