Skip to content

Conversation

@lissyx
Copy link
Contributor

@lissyx lissyx commented Jan 12, 2026

Doing it in SelectStartupProfile() was somehow hitting race condition leading to a segfault while running some tests, the stack including XPCOM version of it.

file.forget(aRootDir);
localDir.forget(aLocalDir);
// Background tasks never use profiles known to the profile service.
aProfile = nullptr;
Copy link
Contributor

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?

Copy link
Contributor Author

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

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.
@lissyx lissyx force-pushed the enterprise-check_profile_arg_only_startup branch from 6795db2 to b94dfac Compare January 13, 2026 12:49
@lissyx lissyx merged commit c642578 into enterprise-main Jan 13, 2026
1 check passed
@lissyx lissyx deleted the enterprise-check_profile_arg_only_startup branch January 13, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants