Bug 2020436 - Upgrading firefox package reverts home page setting from about:home/about:newtab to https://start.fedoraproject.org/
Summary: Upgrading firefox package reverts home page setting from about:home/about:new...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2025120 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-04 21:10 UTC by Wazhai
Modified: 2025-05-16 14:24 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-16 07:38:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Wazhai 2021-11-04 21:10:49 UTC
Description of problem:
Every time when the firefox package is upgraded, if the user set their home page to about:home/about:newtab (Firefox upstream default), the upgrade changes that to Fedora's default https://start.fedoraproject.org/

Version-Release number of selected component (if applicable):
93 -> 94 upgrade and every previous upgrade

How reproducible:
1. Under Firefox Settings set "Homepage and new windows" to "Firefox Home (default)" from dropdown, or "Custom URL" with about:home or about:newtab
2. Upgrade firefox package with dnf when a new version comes out
3. User's preferred home page gets discarded and reverted to https://start.fedoraproject.org/

Expected results:
Don't override user's home page of choice.

Comment 1 Martin Stransky 2021-11-10 11:32:26 UTC
I wonder what can cause it because I don't see is....I use 'Firefox Home (Default)' and it's kept by update.

Comment 2 Wazhai 2021-11-10 19:05:13 UTC
By the way, I found that this was previously reported/mentioned under this bug 1660243 here: https://bugzilla.redhat.com/show_bug.cgi?id=1660243#c3

Comment 3 Wazhai 2021-11-10 19:23:48 UTC
Apologies for the double comment!

Multiple users also report facing this issue here: https://www.reddit.com/r/Fedora/comments/mtyqj9/how_to_prevent_fedora_from_changing_firefox_start/

I have tried setting homepage to "Firefox Home (Default)" as well as Custom URL about:home and about:newtab, but it didn't keep my setting either way.

How can this be diagnosed and narrowed down? Maybe some dnf logs when the next Firefox package update comes out?

Comment 4 Martin Stransky 2021-11-12 09:55:09 UTC
What do you have under browser.startup.homepage pref at about:config page?

I have these prefs set and the page is not re-set for me during update:
(type homepage in the search field)

browser.startup.firstrunSkipsHomepage	true	
browser.startup.homepage	about:home	
browser.startup.homepage.abouthome_cache.enabled	false	
browser.startup.homepage.abouthome_cache.loglevel	Warn	
browser.startup.homepage_override.buildID	20211101113533	
browser.startup.homepage_override.mstone	94.0	
pref.browser.homepage.disable_button.current_page	false	
pref.browser.homepage.disable_button.restore_default	false	
services.sync.prefs.sync.browser.startup.homepage	true	
startup.homepage_override_url		
startup.homepage_welcome_url	about:welcome	
startup.homepage_welcome_url.additional	

I also recall that homepage can be tied to localization - which Firefox localization do you run?

Comment 5 Wazhai 2021-11-12 13:56:34 UTC
These are all of the prefs that show up for "homepage". They look identical to yours. And under the Firefox Settings GUI it's currently set to "Firefox Home (default)" for both homepage and new tabs.

browser.startup.firstrunSkipsHomepage	true	
browser.startup.homepage	about:home	
browser.startup.homepage.abouthome_cache.enabled	false	
browser.startup.homepage.abouthome_cache.loglevel	Warn	
browser.startup.homepage_override.buildID	20211101135957	
browser.startup.homepage_override.mstone	94.0	
services.sync.prefs.sync.browser.startup.homepage	true	
startup.homepage_override_url		
startup.homepage_welcome_url	about:welcome	
startup.homepage_welcome_url.additional	

As for locale/language, everything is set to English (United Kingdom): under GNOME Settings system Language and Formats, as well as the main Firefox language setting in Settings ("Choose the languages used to display menus, messages, and notifications from Firefox")

Comment 6 Chase Lau 2021-11-13 19:54:17 UTC
Here's what I have under browser.startup:

browser.startup.blankWindow	false	
browser.startup.couldRestoreSession.count	2	
browser.startup.firstrunSkipsHomepage	true	
browser.startup.homepage	data:text/plain,browser.startup.homepage=https://start.fedoraproject.org/	
browser.startup.homepage.abouthome_cache.enabled	false	
browser.startup.homepage.abouthome_cache.loglevel	Warn	
browser.startup.homepage_override.buildID	20211101141339	
browser.startup.homepage_override.mstone	94.0	
browser.startup.lastColdStartupCheck	1636832544	
browser.startup.page	1	
browser.startup.upgradeDialog.enabled	true	
browser.startup.upgradeDialog.version	94	
services.sync.prefs.sync.browser.startup.homepage	true	
services.sync.prefs.sync.browser.startup.page	true

I will often set my homepage to an extension (Tabliss), but it doesn't seem to matter.

Comment 7 Chris Irwin 2021-11-15 15:04:11 UTC
I've had my homepage reset to fedoraproject after most firefox updates over the last few years. However, this time I've had to repeatedly reset it after this update -- possibly because of Firefox Sync? (You can see I subscribed to this bug on Friday as it was already annoying me then)

Logging on to my workstation this morning, my homepage is reset (again). This is the results for "homepage" right away:

    browser.startup.firstrunSkipsHomepage	true	
    browser.startup.homepage	data:text/plain,browser.startup.homepage=https://start.fedoraproject.org/	
    browser.startup.homepage.abouthome_cache.enabled	false	
    browser.startup.homepage.abouthome_cache.loglevel	Warn	
    browser.startup.homepage_override.buildID	20211101141339	
    browser.startup.homepage_override.mstone	94.0	
    extensions.lastpass.showHomepageAfterLogin	true	
    services.sync.prefs.sync.browser.startup.homepage	true	
    startup.homepage_override_url		
    startup.homepage_welcome_url	about:welcome	
    startup.homepage_welcome_url.additional	

And after manually fixing my homepage back to my preference:

    browser.startup.firstrunSkipsHomepage	true	
    browser.startup.homepage	about:home	
    browser.startup.homepage.abouthome_cache.enabled	false	
    browser.startup.homepage.abouthome_cache.loglevel	Warn	
    browser.startup.homepage_override.buildID	20211101141339	
    browser.startup.homepage_override.mstone	94.0	
    extensions.lastpass.showHomepageAfterLogin	true	
    services.sync.prefs.sync.browser.startup.homepage	true	
    startup.homepage_override_url		
    startup.homepage_welcome_url	about:welcome	
    startup.homepage_welcome_url.additional

Comment 8 Martin Stransky 2021-11-15 15:08:20 UTC
I don't use Firefox Sync - It's possible that it causes it.

Comment 9 Chris Irwin 2021-11-15 17:45:52 UTC
You're right, it seems like the recurring issue I've had this week may be exacerbated by Firefox Sync.

But I think the underlying issue is still a Fedora one. I never have my home page reset to a stock Mozilla page after version updates on Windows, for example.

Comment 10 Wazhai 2021-11-15 18:03:27 UTC
I can also confirm that this issue is specific to Fedora. I have been using Firefox Sync for years on Android, Windows, and several other Linux distros without issue. Homepage being reset to Fedora's default only happens to the PC that's using Fedora.

Comment 11 Martin Stransky 2021-11-15 19:46:27 UTC
It's possible that Fedora uses wrong way how to set up the homepage. Right now we set:

pref("startup.homepage_override_url",       "");
pref("browser.startup.homepage",            "data:text/plain,browser.startup.homepage=https://start.fedoraproject.org/");
pref("browser.newtabpage.pinned",           '[{"url":"https://start.fedoraproject.org/","title":"Fedora Project - Start Page"}]');

so looks like the 

browser.startup.homepage	data:text/plain,browser.startup.homepage=https://start.fedoraproject.org/

is set after update. But we set that in Firefox internally and user settings from user profile should have higher priority.

If you look at about:config, is the 'browser.startup.homepage' key printed as bold when contains your values (about:home)? If it's bold it means user defined value and should be kept. If it's printed by regular font it's default value and it's supposed to be overwritten by update.

Comment 12 Chris Irwin 2021-11-15 22:01:18 UTC
Yes, it's bold.

Bold w/ reset button (indicating it's overriding a default value)

    browser.startup.homepage

Bold w/ trash button (I belive indicates this is a user-defined but not an override)

    browser.startup.homepage_override.buildID
    browser.startup.homepage_override.mstone
    browser.startup.homepage_override.once
    extensions.lastpass.showHomepageAfterLogin

Comment 13 Chase Lau 2021-11-16 00:53:12 UTC
I just tried reinstalling, downgrading, and downgrading and then upgrading firefox, but was unable to reproduce this bug. I wonder if it has something to do with the sync process itself? I sync with a Windows computer, and have with a Mac computer in the past, FWIW.

Comment 14 Chris Irwin 2021-11-16 17:27:52 UTC
I also can't reproduce it on fresh profiles:

* Downgraded to firefox-93.0-2.fc35.x86_64.rpm
* Created two new profiles (HP1 & HP2)
* Set up a new sync account with them
* Changed homepage to "Firefox Home (Default)" in HP1, HP2 sync'd that setting
* Upgraded to firefox-94.0-1.fc35.x86_64.rpm
* Neither profile has homepage reset

It may be something either in my firefox local profile (on both firefox computers, possibly synced) or something in my Sync account online (I have used sync since it was called Weave >10 years ago).

That said, I regularly use two firefox profiles, both were affected by this issue. While my primary one is old, the other was just created last year and not heavily customized beyond start page, search engine, and bookmarks.

Is there any information I can gather before/during/after the next firefox upgrade (95) in a few weeks in case the same happens again?

Comment 15 Andrew Barchuk 2021-11-30 18:30:31 UTC
*** Bug 2025120 has been marked as a duplicate of this bug. ***

Comment 16 Matthias Blümel 2022-01-05 18:40:09 UTC
I can confirm this issue. It seems to happen when you have firefox synced with non-fedora-systems. I have several Windows 10/11 and Ubuntus as well as Android synced with my fedora-firefox. The not-fedora ones are unsetting the user pref `browser.startup.homepage` when set to `about:home`. This unset gets synced and fedora falls back to `data:text/plain,browser.startup.homepage=https://start.fedoraproject.org/`.

I worked around this behaviour through resetting the fedora-adjustment using autoconfig with

echo -e '// IMPORTANT: Start your code on the 2nd line\ndefaultPref("browser.startup.homepage", "about:home");' | sudo tee /usr/lib64/firefox/firefox.cfg
echo -e 'pref("general.config.filename", "firefox.cfg");\npref("general.config.obscure_value", 0);' | sudo tee /usr/lib64/firefox/defaults/pref/autoconfig.js
# restart all firefox-instances

(see https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig)

You can also reset the other two prefs, but I'm fine with them.

Comment 17 Ben Cotton 2022-02-08 21:16:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 18 Chase Lau 2022-04-16 17:53:48 UTC
I just had this happen for the first time in a while. I browsed to the Youtube homepage and a couple of parts of the DOM didn't load. The browser crashed shortly after. When I opened it again, the homepage was reset to start.fedoraproject.org.

Also, it might be worth merging bug 1968194 into this one. That one is older, but this one has more activity.

Comment 19 Ben Cotton 2023-04-25 16:45:47 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 20 Chase Lau 2023-04-28 17:11:06 UTC
I can confirm this is still an issue with Fedora 37.

Comment 21 Chase Lau 2024-03-17 22:20:07 UTC
Confirming this is still an issue on Fedoras 39 and 40 (branched).

I believe the issue stems from this line in the build of Firefox for Fedora:

https://src.fedoraproject.org/rpms/firefox/blob/rawhide/f/firefox-redhat-default-prefs.js#_18

Would it be possible to move setting this preference into a script which only runs on install and not on upgrade? I do believe there is an advantage to showing first-time users the Fedora homepage, but continuously overriding users' homepage is not desired behavior.

Comment 22 Aoife Moloney 2024-05-07 15:44:36 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 23 Wazhai 2024-05-07 16:34:02 UTC
Still an issue on F40 for me too.

Comment 24 jack 2024-06-13 14:37:19 UTC
Hey, I was looking into why this issue may be happening, and it seems like it may 
be due to some weird interaction with Firefox sync on Firefox and Windows..

I was able to reproduce with the following steps:
1. Install Fedora, create new Firefox Sync account
2. Log into Firefox Sync, making sure it's synced to "Firefox Home (default)"
3. Install Windows, install Firefox on Windows, sign in to Firefox sync
4. Update Firefox on Fedora, launch it and observe homepage

Although when I tried downgrading Firefox on Fedora and upgrading it again, it wasn't 
overwritten again..

I also set up a RHEL vm and signed into the Firefox sync account before setting up the 
Windows box, but I couldn't reproduce the bug with that one

For anyone reading this thread: I'm curious to know what kind of devices you have 
synced to FF Sync: for me I experience this issue on my personal Fedora and Windows box

I have a gut feeling that disabling homepage syncing on the firefox-redhat-default-prefs.js file
could solve it :p

Comment 25 Matthias Blümel 2024-06-13 16:36:17 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=2020436#c16 for a workaround ;-) I'm using it since years and it works flawlessly

Comment 26 jack 2024-06-26 18:42:11 UTC
I've thought of another workaround: I set my home page to about:home# (so that it's no longer set to the default option) and it just survived one Firefox update

Comment 27 Martin Stransky 2024-06-28 07:14:09 UTC
Thanks for the investigation here!

Comment 28 Aoife Moloney 2025-04-25 10:01:36 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 29 Aoife Moloney 2025-05-16 07:38:34 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 30 Wazhai 2025-05-16 08:08:28 UTC
There are workarounds but this is still an issue.

Comment 31 jack 2025-05-16 13:41:06 UTC
I think the only long-term solution to this bug would be to remove the custom homepage. FWIW, I just installed Ubuntu 24.10 to test, and they no longer override their homepage to start.ubuntu.com.

Comment 32 Chase Lau 2025-05-16 14:07:22 UTC
I would agree that the custom homepage should be removed. It's unfortunate since the Fedora Homepage provides great information on the distro, but I think the user experience is degraded too much when this bug is encountered.

Comment 33 Wazhai 2025-05-16 14:16:42 UTC
Is there anything that prevents the root cause from being addressed? Comment 21 already seems to have identified the cause.

It's fine if this is the default home page after installation, but the user's preference shouldn't be overwritten on upgrade.

Comment 34 Matthias Blümel 2025-05-16 14:24:16 UTC
As per #25: https://bugzilla.redhat.com/show_bug.cgi?id=2020436#c16


Note You need to log in before you can comment on or make changes to this bug.