Closed Bug 1903580 Opened 2 years ago Closed 2 years ago

browser.cache.disk.enable resets to true after Firefox update

Categories

(Toolkit :: Application Update, defect)

Firefox 127
defect

Tracking

()

RESOLVED DUPLICATE of bug 1903615

People

(Reporter: jonathan, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

I used to set browser.cache.disk.enable and browser.cache.disk_cache_ssl to false in about:config.

Actual results:

After upgrading Firefox to 127.0, both properties have been reverted to true.
I updated these two properties to false in about:config again.
After upgrading Firefox to 127.0.1, browser.cache.disk.enable has been reverted to true.

Expected results:

Firefox upgrades should keep browser.cache.disk.enable and browser.cache.disk_cache_ssl values.

The Bugbug bot thinks this bug should belong to the 'Core::Networking: Cache' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking: Cache
Product: Firefox → Core

Tried across an update of nightly, it didn't change.
Are you running any extensions that might modify the value? Note that no guarantees are made about direct modifications to about:config, only for things done via Preferences.

Severity: -- → S3
Flags: needinfo?(jonathan)
Priority: -- → P3
Whiteboard: [necko-triaged][necko-priority-new]

I'm using µBlock Origin only. I can try to disable it and see what happens on next Firefox update.

Flags: needinfo?(jonathan)
Blocks: necko-cache
Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged]
Severity: S3 → S4

I don't think this is a necko bug. Maybe related to Update?

Component: Networking: Cache → Application Update
Product: Core → Toolkit
Duplicate of this bug: 1904416

Confirmed in Windows Sandbox, update from Fx126->Fx127. Update shouldn't touch this code afaik. That said, I don't see any code that modifies this value in source at all, so I'm a bit perplexed.

STR
Install an older version of Firefox.
Flip browser.cache.disk.enable to false.
Update Firefox and restart.
Check the browser.cache.disk.enable value.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true

The product::component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.

Priority: P3 → --

I guess the background task is the culprit.

Background task sets the default branch of browser.cache.disk.enable value to false.
https://searchfox.org/mozilla-central/rev/64ddb621a0d3905fc2e3df475517d4163d377b22/toolkit/components/backgroundtasks/defaults/backgroundtasks.js#16

Even if users set the browser.cache.disk.enable value to false, the user-set value will be lost because the default value (false here) is the same as user-set one.

Next time when Firefox launches normally, browser.cache.disk.enable value will be the default (that is, true).

I noticed that too but ruled it out. Background tasks shouldn't touch user profiles; they only use temporary (ephemeral) or per-task (non-ephemeral) profiles.

Workaround:

user_pref("browser.cache.disk.enable", false);

I added this line to user.js.

I set test.backgroundtask_specific_pref.exitCode to 79 and run update. The pref disappeared. If I set the value to something other than 79, the pref survives the update.

So I believe Background tasks fiddle with user profiles somehow or backgroundtasks.js is erroeneously applied to regular Firefox launch on update.

Confirmed that the problem no longer happens with 130.0b1 to 130.0b2 update.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1903615
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.