Firefox Developer Edition upgrades & breaks Fx Standard profile
Categories
(Toolkit :: Startup and Profile System, defect)
Tracking
()
People
(Reporter: rj.amdphreak, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Steps to reproduce:
I installed Developer Edition, launched it, closed it, closed Fx Standard, opened Developer Edition, closed it again, then opened Fx Standard edition. Firefox Standard edition says my profile is now incompatible with it because Developer edition upgraded it against my wishes.
Actual results:
Firefox Developer Edition upgraded my Standard Firefox profile without my permission. Now I can't use that profile in Standard Firefox. Every time I try to open the profile from Standard Firefox ("about:profiles" or using a profile manager plugin), it gives an error message saying "Using an older version of Firefox can corrupt bookmarks and browsing history already saved to an existing Firefox profile. To protect your information, create a new profile for this installation of Firefox."
I have hundreds of websites logged in on that profile, as well as several projects organized into about 7 windows totaling about 50 tabs organized on multiple monitors and multiple virtual desktops in Windows. When I open Fx Standard, it says that "Simply creating a new profile is not a solution, and is not simple.
The profile was originally called default-release. I renamed it to "Ryan Personal" - like I would have named it, were it in Chrome or Edge, or any other browser. The default profile for Developer Edition was never supposed to be set to anything other than "dev-edition-default".
Someone posting about Profiles said that new versions of firefox do not share their profiles with the Developer edition, but I have a fully updated Fx and it shared them.
The Developer Edition should not have access to Standard Ffx's profiles, especially when Dev edition will "update" them and make them impossible to use in Standard edition.
Moreover, I now need a way to downgrade my profile, if we're to believe the error message.
Expected results:
Profiles should be separate. The Developer edition installer should never read settings like default profile that are created in Standard firefox, or even have access to those profiles. Developer edition should have its own separate defaults.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Startup and Profile System' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Maybe duplicate of my bug https://bugzilla.mozilla.org/show_bug.cgi?id=1836599
| Reporter | ||
Comment 3•3 years ago
|
||
(In reply to Patrik Krajcovic [:patricek] (she/her) from comment #2)
Maybe duplicate of my bug https://bugzilla.mozilla.org/show_bug.cgi?id=1836599
Yeah, looks like it. My bad. Didn't see it. My search terms were different. There are also three separate issues: A) they shouldn't share, and B) it shouldn't automatically swap to my main profile, and C) it shouldn't automatically upgrade my profile--I should be given a warning that it's about to happen and a back-up of the profile if the other channel's version number is different.
If any one of these was fixed, the others wouldn't be as much of a problem.
| Reporter | ||
Comment 4•3 years ago
|
||
Is there no way to edit replies here? ooh boy.
| Reporter | ||
Comment 5•3 years ago
|
||
Yeah, I've reproduced the problem again with another one of my profiles.
0. Run Firefox Developer Edition and Std Edition
- In Firefox Std, set the default profile using Profile Switcher plugin.
- Close all instances of Firefox Std Edition.
- Open Std Edition.
- Your profile is now irreversibly upgraded.
Comment 6•3 years ago
|
||
I'm a bit confused about what this bug is about. Can you post some specific steps to reproduce your issue including what you see and what you expect to see or think is wrong about what you see?
| Reporter | ||
Comment 7•3 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #6)
I'm a bit confused about what this bug is about. Can you post some specific steps to reproduce your issue including what you see and what you expect to see or think is wrong about what you see?
I literally just did. No offense, but it's all there. Every last detail you need to see this bug's impact.
I want to use Developer edition alongside Std firefox. I do not want my std edition profiles being hijacked by Dev edition. Dev edition reads the settings file that records what default profile I've selected for my std edition firefox, and then automatically upgrades it, so I can no longer use it in std firefox.
Comments on StackOverflow have said Std and Dev edition didn't have access to each other's profiles after a certain older version of firefox, but this is clearly not true. Dev edition says it is installed to "C:\program files\Firefox developer edition" but it clearly is using the same settings files from C:\users\blah\AppData\roaming\mozilla\firefox folder.
Setting the default profile in Std edition causes the default profile in Dev edition to be set to the same default, which is the crux of this bug. But--on top of that, when it automatically upgrades the profile to firefox version 117, it also doesn't warn me it's upgrading it. The logical thing to do would be to have each edition of Firefox mark its profiles so the other release channels can check who is responsible for what profile and--in the event that they try to load another installation's profile, they warn the user that upgrading the profile will prevent them from using it with the installation that created it, and offer to create a backup of the profile, or automatically back it up, just in case they fat-finger the Enter key.
Comment 8•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #7)
(In reply to Dave Townsend [:mossop] from comment #6)
I'm a bit confused about what this bug is about. Can you post some specific steps to reproduce your issue including what you see and what you expect to see or think is wrong about what you see?
I literally just did. No offense, but it's all there. Every last detail you need to see this bug's impact.
I want to use Developer edition alongside Std firefox. I do not want my std edition profiles being hijacked by Dev edition. Dev edition reads the settings file that records what default profile I've selected for my std edition firefox, and then automatically upgrades it, so I can no longer use it in std firefox.
This shouldn't happen generally. The two (indeed any other install of Firefox) should use different profiles by default, though it is possible to override that.
(In reply to rj.AMDphreak@gmail.com from comment #5)
Yeah, I've reproduced the problem again with another one of my profiles.
0. Run Firefox Developer Edition and Std Edition
- In Firefox Std, set the default profile using Profile Switcher plugin.
Set the default profile to what? Can you explain exactly what you're doing here? Unfortunately I don't know what the profile switcher extension does, it would be really helpful if you can reproduce this with the built in profile manager by using about:profiles to perform the steps.
- Close all instances of Firefox Std Edition.
- Open Std Edition.
- Your profile is now irreversibly upgraded.
Can you elaborate on what this means. Do you mean that when you open Firefox in step three you get a warning dialog or something else?
| Reporter | ||
Comment 9•3 years ago
|
||
Unfortunately this is going to be a lot of indented text
(In reply to Dave Townsend [:mossop] from comment #8)
(In reply to rj.AMDphreak@gmail.com from comment #7)
(In reply to Dave Townsend [:mossop] from comment #6)
I'm a bit confused about what this bug is about. Can you post some specific steps to reproduce your issue including what you see and what you expect to see or think is wrong about what you see?
I literally just did. No offense, but it's all there. Every last detail you need to see this bug's impact.
I want to use Developer edition alongside Std firefox. I do not want my std edition profiles being hijacked by Dev edition. Dev edition reads the settings file that records what default profile I've selected for my std edition firefox, and then automatically upgrades it, so I can no longer use it in std firefox.
This shouldn't happen generally. The two (indeed any other install of Firefox) should use different profiles by default, though it is possible to override that.
So, why is it doing this? I read that the two installs weren't supposed to share profiles. But the evidence is that they are indeed sharing profiles. I have a plugin installed to allow me to launch profiles without going to the 'about:profiles' page (which has a hideous UI anyway).
It is possible to set a default profile for the current install of firefox. When I set the default in one of them, it changes the default in the other one, proving that both dev and std edition Firefox share the same settings files as well. The settings are likely stored in one of the AppData folders, instead of in the Program Files, which makes it the app developer's responsibility to make sure one app doesn't read another app's settings.
I did not explicitly override anything. If the Profile Switcher plugin overrides this, maybe that is how this happened.
https://addons.mozilla.org/en-US/firefox/addon/profile-switcher/
Based on my best guess, I would assume it has no power to change that behavior. That sounds like something that would be configured in the firefox installer. But I don't believe I saw anything related to this when I was installing Ffx.
(In reply to rj.AMDphreak@gmail.com from comment #5)
Yeah, I've reproduced the problem again with another one of my profiles.
0. Run Firefox Developer Edition and Std Edition
- In Firefox Std, set the default profile using Profile Switcher plugin.
Set the default profile to what? Can you explain exactly what you're doing here? Unfortunately I don't know what the profile switcher extension does, it would be really helpful if you can reproduce this with the built in profile manager by using about:profiles to perform the steps.
Set the default profile for the installation of Firefox. You can do the exact same thing from 'about:profiles' and just click the "Set Default" button. This changes which profile is opened by default when running Firefox. When Firefox opens up, it picks one profile to launch with, and the others are not opened unless the user explicitly opens them.
Compare this behavior to Chrome: Chrome, by default, opens all profiles that were open when closing Chrome via the menu (menu>Quit Chrome). When closing an individual profile in Chrome using the X button on the window, it does not re-open that profile for you when you quit and re-open Chrome.
- Close all instances of Firefox Std Edition.
- Open Std Edition.
- Your profile is now irreversibly upgraded.
Can you elaborate on what this means. Do you mean that when you open Firefox in step three you get a warning dialog or something else?
Yes, that is the case. It says that using a profile with an older version of Firefox could cause corrupt data. When you close Firefox std edition, the running copy of Firefox Dev edition promptly reads the default profile you set in std edition, and then upgrades it in the background, without you even needing to open the profile in Dev edition. At this point, if you open Dev edition, it launches the default profile you set in std edition. If you open std edition, it gives you the error message about using an old version of firefox. Std edition is currently v116, and Dev edition is v117.
| Reporter | ||
Updated•3 years ago
|
Comment 10•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #9)
Unfortunately this is going to be a lot of indented text
(In reply to Dave Townsend [:mossop] from comment #8)
(In reply to rj.AMDphreak@gmail.com from comment #7)
(In reply to Dave Townsend [:mossop] from comment #6)
I'm a bit confused about what this bug is about. Can you post some specific steps to reproduce your issue including what you see and what you expect to see or think is wrong about what you see?
I literally just did. No offense, but it's all there. Every last detail you need to see this bug's impact.
I want to use Developer edition alongside Std firefox. I do not want my std edition profiles being hijacked by Dev edition. Dev edition reads the settings file that records what default profile I've selected for my std edition firefox, and then automatically upgrades it, so I can no longer use it in std firefox.
This shouldn't happen generally. The two (indeed any other install of Firefox) should use different profiles by default, though it is possible to override that.
So, why is it doing this?
That's what I'm trying to understand.
I read that the two installs weren't supposed to share profiles. But the evidence is that they are indeed sharing profiles. I have a plugin installed to allow me to launch profiles without going to the 'about:profiles' page (which has a hideous UI anyway).
They share profiles, in that all of the profiles are in the same location and available to all Firefox installs but they shouldn't share defaults, each install has its own setting for which profile it loads by default.
(In reply to rj.AMDphreak@gmail.com from comment #5)
Yeah, I've reproduced the problem again with another one of my profiles.
0. Run Firefox Developer Edition and Std Edition
- In Firefox Std, set the default profile using Profile Switcher plugin.
- Close all instances of Firefox Std Edition.
- Open Std Edition.
- Your profile is now irreversibly upgraded.
Here is my attempt to reproduce this:
- Open Firefox Release.
- Open Firefox Developer Edition.
- Go to about:profiles in Firefox Release. See the profiles
default-releaseanddev-edition-default. - In about:profiles in Firefox Release click
Create a New Profileand go through the process of creating a profile to switch to. This automatically makes that new profile as the default for Firefox Release. - Close Firefox Release.
- Open Firefox Release.
At this point Firefox Release opens using the new profile I created and I saw no error about an incompatible profile. I also tried restarting Firefox Developer Edition and it continued to use the same dev-edition-default profile as it was before with no error.
I've probably misunderstood something about how to reproduce this, can you point out where I went wrong?
| Reporter | ||
Comment 11•3 years ago
|
||
I was wrong about the steps to follow. Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition. The settings files are read on launch only.
- Open Std
- Make new profile/set default
- Open Dev
- Observe it now using Std's default profile.
- Try to open a new Std instance. If you get an error saying Firefox is already running, but is not responding, close Dev edition.
This bug is starting to show new symptoms:
Sometimes, one running Firefox edition will block me from launching the other edition. Earlier, I had no problems, but today I keep getting an error saying "Firefox is already running, but is not responding. the old firefox process must be closed to open a new window." BUT IT IS RESPONDING. I can use it just fine. And the error goes away when I close the opposite edition of Firefox to what triggered the message.
Communicating these bugs to you would be a lot easier with screenshots and videos. Why is Bugzilla stuck in 1990? I want to upload and copy/paste directly into Bugzilla, not DIY and learn Markup all over again.
| Reporter | ||
Comment 12•3 years ago
|
||
I tried embedding an image into the last response. It did not respect the Markup language. Here's the link. https://i.imgur.com/F51Cm1q.png
Comment 13•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #11)
I was wrong about the steps to follow. Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition. The settings files are read on launch only.
Can you clarify what you mean by "The settings files are read on launch only"?
- Open Std
- Make new profile/set default
- Open Dev
- Observe it now using Std's default profile.
- Try to open a new Std instance. If you get an error saying Firefox is already running, but is not responding, close Dev edition.
Your first comment says "Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition" but that is the opposite of the steps you list here, which is it?
When you run both standard and dev editions please go to about:support and tell me what it lists for the "Application Binary" for each.
Communicating these bugs to you would be a lot easier with screenshots and videos. Why is Bugzilla stuck in 1990? I want to upload and copy/paste directly into Bugzilla, not DIY and learn Markup all over again.
Images and videos must be added to the bug as attachments so they remain linked to the bug. Links to external sites are unfortunately transient and often expire long after the bug is still relevant. I agree the UI to do this could be easier.
| Reporter | ||
Comment 14•3 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #13)
(In reply to rj.AMDphreak@gmail.com from comment #11)
I was wrong about the steps to follow. Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition. The settings files are read on launch only.
Can you clarify what you mean by "The settings files are read on launch only"?
Yes I suppose so. The settings files on disk are read by Firefox when starting up Firefox. On executable launch, not PC startup.
- Open Std
- Make new profile/set default
- Open Dev
- Observe it now using Std's default profile.
- Try to open a new Std instance. If you get an error saying Firefox is already running, but is not responding, close Dev edition.
Your first comment says "Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition" but that is the opposite of the steps you list here, which is it?
In context, I was referring to steps 3-5. Obviously, one has to open std edition in step 1 to initialize the profile before giving dev edition a chance to ruin it in step 3. But my comment was to correct the critical steps 3-5 in which the bug happens.
When you run both standard and dev editions please go to about:support and tell me what it lists for the "Application Binary" for each.
Std edition contains: C:\Program Files\Mozilla Firefox\firefox.exe
Developer edition contains: C:\Program Files\Firefox Developer Edition\firefox.exe
This is not the source of the issue.
The issue is they share their settings files. In Windows, settings files are located in a folder associated with the user's account, which I mentioned before: C:\users\<username>\AppData\Roaming\Mozilla\Firefox and C:\users\<username>\AppData\Local\Mozilla\Firefox These settings file paths are likely hard-coded into Firefox, thus the accidental sharing, instead of each installation generating new folders for itself using a unique install-ID computed from a hash of the install location (at least, this is how I would do it as a developer).
Communicating these bugs to you would be a lot easier with screenshots and videos. Why is Bugzilla stuck in 1990? I want to upload and copy/paste directly into Bugzilla, not DIY and learn Markup all over again.
Images and videos must be added to the bug as attachments so they remain linked to the bug. Links to external sites are unfortunately transient and often expire long after the bug is still relevant. I agree the UI to do this could be easier.
Interesting that you say that. There are no attachment controls shown to me. Are we using the same Bugzilla?
| Reporter | ||
Comment 15•3 years ago
|
||
The Program Files folder where each instance of Firefox is installed should ideally contain 1 text file containing the path to its unique folder in the User's AppData area.
C:\Program Files\Mozilla Firefox\somesettingsfile.txt
contains:
%USERPROFILE%\AppData\Local\Mozilla\Firefox\<computed_hash_of_install_path>\
Settings files go inside of that folder. Notice I used Local and not Roaming. You can read more about why to use Local not Roaming, here: https://superuser.com/questions/150012/what-is-the-difference-between-local-and-roaming-folders
| Reporter | ||
Comment 16•3 years ago
|
||
Also notice that I used %USERPROFILE% instead of hard-coding the path. This variable is necessary. It allows the installation to find the correct path within each user's AppData folder, when they launch Firefox.
Comment 17•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #14)
(In reply to Dave Townsend [:mossop] from comment #13)
Images and videos must be added to the bug as attachments so they remain linked to the bug. Links to external sites are unfortunately transient and often expire long after the bug is still relevant. I agree the UI to do this could be easier.
Interesting that you say that. There are no attachment controls shown to me. Are we using the same Bugzilla?
It should be at the top of the page immediately above the comment box. Possibly the attachments section is collapsed.
Comment 18•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #14)
(In reply to Dave Townsend [:mossop] from comment #13)
(In reply to rj.AMDphreak@gmail.com from comment #11)
- Open Std
- Make new profile/set default
- Open Dev
- Observe it now using Std's default profile.
- Try to open a new Std instance. If you get an error saying Firefox is already running, but is not responding, close Dev edition.
Your first comment says "Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition" but that is the opposite of the steps you list here, which is it?
In context, I was referring to steps 3-5. Obviously, one has to open std edition in step 1 to initialize the profile before giving dev edition a chance to ruin it in step 3. But my comment was to correct the critical steps 3-5 in which the bug happens.
I've been unable to reproduce the issue with those steps unfortunately which makes it challenging to figure out what is going on. It might help to collect a copy of the profiles configuration file (%USERPROFILE%\AppData\Roaming\Mozilla\Firefox\profiles.ini) before each step of your steps to reproduce, that way I can at least verify what Firefox thinks is going on here. If you add the file as an attachment at each step of the process and be sure to note in the description where in the process the file comes from.
| Reporter | ||
Comment 19•3 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #18)
(In reply to rj.AMDphreak@gmail.com from comment #14)
(In reply to Dave Townsend [:mossop] from comment #13)
(In reply to rj.AMDphreak@gmail.com from comment #11)
- Open Std
- Make new profile/set default
- Open Dev
- Observe it now using Std's default profile.
- Try to open a new Std instance. If you get an error saying Firefox is already running, but is not responding, close Dev edition.
Your first comment says "Be sure to open a new instance of Developer Edition, before opening a new instance of Std edition" but that is the opposite of the steps you list here, which is it?
In context, I was referring to steps 3-5. Obviously, one has to open std edition in step 1 to initialize the profile before giving dev edition a chance to ruin it in step 3. But my comment was to correct the critical steps 3-5 in which the bug happens.
I've been unable to reproduce the issue with those steps unfortunately which makes it challenging to figure out what is going on. It might help to collect a copy of the profiles configuration file (
%USERPROFILE%\AppData\Roaming\Mozilla\Firefox\profiles.ini) before each step of your steps to reproduce, that way I can at least verify what Firefox thinks is going on here. If you add the file as an attachment at each step of the process and be sure to note in the description where in the process the file comes from.
You don't need to reproduce it. Just look at the code. It'll be really obvious when a settings file is hard-coded into the program. Also I really don't see how you can't reproduce this. I've had enough of the "works on my machine" phenomenon with programmers. I almost always end up being able to isolate the reason for a bug, but I shouldn't have to be the only one who has the time and patience to do so. If I submit another reply with that kind of information, it will be with MUCH repressed annoyance.
| Reporter | ||
Comment 20•3 years ago
|
||
This is the profiles.ini today, after multiple occurrences of the bug which I have described completely and irrefutably.
| Comment hidden (offtopic) |
| Reporter | ||
Comment 22•3 years ago
|
||
profiles are always synced. the file lists the installs separately but this information is automatically synced for some unknown reason.
Comment 23•3 years ago
|
||
(In reply to rj.AMDphreak@gmail.com from comment #19)
(In reply to Dave Townsend [:mossop] from comment #18)
I've been unable to reproduce the issue with those steps unfortunately which makes it challenging to figure out what is going on. It might help to collect a copy of the profiles configuration file (
%USERPROFILE%\AppData\Roaming\Mozilla\Firefox\profiles.ini) before each step of your steps to reproduce, that way I can at least verify what Firefox thinks is going on here. If you add the file as an attachment at each step of the process and be sure to note in the description where in the process the file comes from.You don't need to reproduce it. Just look at the code. It'll be really obvious when a settings file is hard-coded into the program.
The settings file is intentionally the same for all installs. That isn't the cause of the bug.
Also I really don't see how you can't reproduce this. I've had enough of the "works on my machine" phenomenon with programmers. I almost always end up being able to isolate the reason for a bug, but I shouldn't have to be the only one who has the time and patience to do so. If I submit another reply with that kind of information, it will be with MUCH repressed annoyance.
I can totally understand the annoyance of continually being asked for details on bugs that seem obvious to you but the developer claims ignorance of, I've been on that side of bug reporting many times, but unfortunately we can only fix bugs we can understand whether it be by being able to actually see it happen or being able to guess where it is happening in the code.
Thankfully in this case providing the profiles.ini file has pointed me to the issue. It contains data that should not be present if it was created by Firefox so I'm assuming you're still using the profile switcher extension to reproduce this. I had discounted that because in comment 9 I thought you had said that you could reproduce by doing the same thing in about:profiles but looking back I think I misunderstood you there. This does turn out to be a bug in the profile switcher add-on. Because add-ons do not have the required permissions to use Firefox's profile manager APIs to modify the profiles database it is instead using a separate executable which is overwriting the profiles.ini file directly and it is doing so incorrectly.
Here are the install sections from my profiles.ini initially:
[Install308046B0AF4A39CB]
Default=Profiles/oboijfjs.default-release
Locked=1
[Install6F193CCC56814779]
Default=Profiles/4gu5miu2.default
Locked=1
And here are the same sections after I create a new profile with the profile switcher add-on (I didn't even need to launch it or attempt to change the default):
[Install308046B0AF4A39CB]
Default=Profiles/oboijfjs.default-release
Locked=0
[Install6F193CCC56814779]
Default=Profiles/oboijfjs.default-release
Locked=0
It actually changed the default profile for the install I was running to the one that wasn't running, not even to the new profile I had created so that seems like a clear unintended bug. I would guess that the extension author hasn't tested this with multiple Firefox installs present.
As this is not a bug in Firefox I'm going to close this bug report. This is something that should be reported to the extension author, though it looks to me like the issue may have already been reported two years ago. If you do get hold of the extension author this is the code that is at fault, it is writing the same default profile to all of the install sections, overwriting whatever was there previously. It's also overwriting the Locked property which is not great.
Description
•