With as many settings as I can find to disable automatic updates, Firefox keeps updating itself on its own.
Categories
(Toolkit :: Application Update, defect)
Tracking
()
People
(Reporter: safer_choice2, Unassigned, NeedInfo)
References
Details
Attachments
(1 file)
|
61.12 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Steps to reproduce:
In a single user instance of Windows 10, for as long as I've been using this machine, with Firefox set to check for updates but not install, app.update.auto set to false, HKEY_LOCAL_MACHINE\Software\Policies set to DisableAppUpdate, disabling the Windows Mozilla update service, Firefox keeps updating itself giving me the "restart firefox to apply updates." On more than one occasion, in the middle of presenting to the team, I have to stop, restart, reshare the app and continue. Now, it's not end of the world type stuff - but - with all of those options set to off, why is Firefox still updating itself?
Actual results:
Started work, started browsing, didn't get to chose when to apply the updates, Firefox updated itself.
Expected results:
Firefox should have obeyed any number of items.
Check for updates but choose when - checked.
app.upate.auto.migrated - false
registry key set to not update - yeap
mozilla update service disabled - yeap
app.update.background.rollout - false
Seems to me there should be one "don't update until I ask you to" option that does just that.
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Application Update' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 months ago
|
||
Thanks for the report!
You ideally aren't meant to turn off the updater, since it can lead to you not getting important fixes. We now have documentation on turning off the updater, but it looks like the registry key you found is probably correct.
I think the main problem here is that the restart-required screen is virtually never supposed to appear, even when updates are enabled, so frankly I'm first going to look at why that's happening. (My hunch is that Firefox isn't updating itself, but something else is updating it.)
- Do you use multiple profiles?
- In about:support, what does it say 'Application Binary' is? (It's in the first table, I'd suggest using Ctrl-F to find it.)
- You said the "mozilla update service" was disabled—is that the Mozilla Maintenance Service?
- In about:preferences, under 'Firefox Updates' > Show Update History, can you upload a screenshot of what it says under "The following updates have been installed"?
- Did you install Firefox through the official installer (on mozilla.org or firefox.com) or some other way?
- Do you have anything else on your machine that might be updating Firefox? e.g. since you say you're presenting to a team, does your IT department update Firefox?
Going off of "it's easy to lose track of updates if they're not automatic", I think that 'Check for updates but choose when to install' (in Firefox settings) on its own is a better move than changing policy to disable updates, but that's under the assumption that you aren't getting this screen anymore.
- There is only one profile, I was thinking of trashing it and recreating to see if that resolved too.
- App is C:\Users\GregMerideth\AppData\Local\Mozilla Firefox\firefox.exe
- Yes, I was trying everything I could think of.
- https://imgur.com/7fo9oKg
- Yes, it was downloaded from mozilla.org.
- Our IT hates firefox but I am allowed to run for development. There are no policies in place to force an update that I know of.
Really, it was just, let me update when I want. I know it's a stupidly small thing but here I am getting laughed at for using FF when in the middle of me presenting code (github review), I try to bring up a new tab to be told "nope, restart" - not even Chrome does that. Since I'm sharing the window it's restart FF, restart sharing and have the Edge guys laugh at me =P
FF will always be my browser of choice if I can just understand why, with all of those flags in place, it's doing this.
Comment 4•4 months ago
|
||
Thanks for the responses! Judging off your screenshot it looks like Firefox is updating itself for some reason, hmm.
I have a few more questions now, but in general this might have to wait until the next time you get an update (which will likely be next Tuesday, July 14). In preparation for that, can you enable app update logging by going to about:config and setting app.update.log to true? Then, when that update happens, before restarting (you can do it now for practice, although maybe don't attach it to the bug yet):
- Did you get that 'Restart Required' message?
- Open the Browser Console either with the hotkey Control+Shift+J, or via Hamburger Menu->More Tools->Browser Console.
- In the Filter textbox at the top, enter AUS:SVC to filter out everything except the update messages.
- Copy them into Notepad or something, restart the browser if you must, then attach it to this bug.
As for my questions now:
- What is
app.update.staging.enabledset to, if anything? Note I'm 99% sure changing this will not help fix your problem, just trying to get a picture of your system. - If you enable/open the Browser Toolbox, go to the Console, and type the following, what do you get?
Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).currentStateCc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).disabledServices.policies.isAllowed("appUpdate")
(In reply to Greg from comment #3)
FF will always be my browser of choice if I can just understand why, with all of those flags in place, it's doing this.
I also want to understand why it's doing this :)
Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).currentState
1
Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).disabled
true
Services.policies.isAllowed("appUpdate")
false
app.update.staging.enabled is set to true
(In reply to Greg from comment #3)
- App is C:\Users\GregMerideth\AppData\Local\Mozilla Firefox\firefox.exe
Not sure it matters, but that seems like a bad place for an install location.
If you install Firefox without administrator privileges, it installs directly to your personal user profile folder. On Windows, this means C:\Users\<YourUsername>\AppData\Local\Mozilla Firefox.
This means the browser is only accessible to your specific Windows account.
(In reply to Greg from comment #7)
If you install Firefox without administrator privileges, it installs directly to your personal user profile folder. On Windows, this means C:\Users\<YourUsername>\AppData\Local\Mozilla Firefox.
This means the browser is only accessible to your specific Windows account.
Ah, OK. TIL 🙂
Comment 9•4 months ago
|
||
needinfo for comment 5 so we don't forget about it.
Comment 10•4 months ago
|
||
I think everything in comment 5 looks as I'd expect, which makes it even more odd that Firefox was somehow updating. Only point is whether STATE_IDLE makes sense, but it seems reasonable (means there's no downloads/etc going on), looks like policy works in parallel.
Greg, did you get an update this week? If you did, I think you would be on 152.0.6 now. If so, were you able to get any logs?
Comment 11•3 months ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:hsohaney, since the bug has recent activity, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Comment 12•3 months ago
|
||
Just to check: isn't the update service listed in your Windows Task Scheduler to run at an interval on the system for some reason?
Comment 13•3 months ago
|
||
And also, regarding "I am allowed to run for development." — does your development perhaps involve running separate Firefox instances, e.g. from CLI for things like WebDriver automation and similar?
Comment 14•3 months ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:Amir, since the bug has recent activity, could you have a look please?
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 15•3 months ago
|
||
This is your run of the mill Windows 10 install. When I say development machine, I have the usual stuff. VScode, node, SQL and vmware workstation to test builds. I have Firefox, Edge that comes with 10 and that is it.
I do not have multiple profiles. I do not have secondary users on my workstation. It's me.
The update service I disabled in an attempt to actually control when Firefox updates. That didn't work. Then I disabled the features in Firefox itself. That didn't work. As you see in the attachment, Firefox with "all updates disabled" still brought up that page saying I had to restart Firefox to keep using it.
And for the ... people ... that offer zero help asking me why - try..just try.. to imagine you on your computer, you open up explorer to get a file that a team needs to access and Windows itself popped up a message saying "no, I will not show you your files unless you reboot." That would be FIRST option you disabled.
I tried that. I want to restart Firefox when I choose to, not Firefox.
Still, after the inane instance that I'm doing things wrong, here I am, not willing to swap to any other browser.
Comment 16•2 months ago
|
||
In case your "usual stuff" runs FE/E2E tests that require headless browsers, if they use your system browser instead of their isolated setup, it's possible the test run acts as a separate profile and might be the instace that actually installs the update, doing the restart instead of your visible instance, which is described in bug 1480452 in more detail — hence the question.
Updated•2 months ago
|
Comment 17•2 months ago
|
||
(In reply to Jan Brasna [:janbrasna] from comment #16)
In case your "usual stuff" runs FE/E2E tests that require headless browsers, if they use your system browser instead of their isolated setup, it's possible the test run acts as a separate profile and might be the instace that actually installs the update, doing the restart instead of your visible instance, which is described in bug 1480452 in more detail — hence the question.
That'd explain the about:restartrequired screen (so I'd still be interested in whether that's happening!), but I think that instance still shouldn't update because of the DisableAppUpdate registry key, which should stop instances from checking/downloading updates.
:Greg—I agree these updates/restarts are annoying, and I'll quickly note it isn't an attempt to force you to update the browser against your wishes, but some bug where Firefox updates even though there's several reasons that it shouldn't, like that it'd cause that 'restart required' screen or, uh, that you disabled it. Were you able to get any update logs (see comment 4)? That's probably the best way to find out what's going on, alongside :janbrasna's questions.
Re priority/severity: I disagree with marking this P3/S3, mainly because I feel that's a recipe for the bug to get lost instead of the cause being found, so I'm unsetting that. Then again, I'm not at Mozilla anymore, so that can be changed back if anyone disagrees.
I wonder if it'd be possible for QA to try setting the DisableAppUpdate policy, then doing a non-admin Firefox installation of a slightly outdated release and seeing whether it updates? Problem is I'm not sure how long you'd wait before concluding it works or not...
Maybe there's some way to tell with telemetry whether any installations update when updates should be disabled?
Comment 18•8 days ago
|
||
(In reply to Greg from comment #15)
I want to restart Firefox when I choose to, not Firefox.
That's completely fair. From your screenshot, the Firefox window you were using appears to respect the policy ("Updates disabled by your organization"). The "Restart to Keep Using Firefox" page should only appear when the Firefox files on disk were replaced while that window was open, so it looks like the update is being applied from somewhere else. The files below should tell us more, without waiting for the next update.
Could you:
- Type
about:supportin the address bar, click "Open Folder" next to "Update Folder", open theupdatesfolder inside it, and attachlast-update.logandbackup-update.logto this bug (whichever of the two exist). - Open "Task Scheduler", go to "Task Scheduler Library" > "Mozilla", and let us know which tasks are listed there.
- Let us know whether you remember Firefox having already downloaded an update (for example, showing a "Restart to update" button) before you set the
DisableAppUpdatepolicy.
Updated•8 days ago
|
Description
•