Closed Bug 1885362 Opened 2 months ago Closed 2 months ago

DefaultDownloadDirectory in policies.json results in locked "save files to" UI for user

Categories

(Firefox :: Enterprise Policies, defect)

Firefox 115
defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox-esr115 --- fixed
firefox124 --- wontfix
firefox125 --- fixed
firefox126 --- fixed

People

(Reporter: pascal.reintjens, Assigned: mkaply)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

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

Steps to reproduce:

  1. Created a policies.json file where DefaultDownloadDirectory is set to ${home}\\Downloads:
{
	"policies": {
		"DefaultDownloadDirectory": "${home}\\Downloads"
	}	
}
  1. Subsequently, placed this file within the installation directory: C:\Program Files\Mozilla Firefox\distribution\policies.json
  2. restarted the browser and went to Settings > General > Downloads

Actual results:

The "save files to" option is now set to "Downloads" but it is now locked and the user is unable to change the Path within the UI.

-> It nearly behaves the same as DownloadDirectory just with the checkbox "Always ask where to save files" not locked.

Expected results:

Since it is a default policy, the "save files to" option should not be locked - the user should still be provided by default with the directory specified in this policy but should be able to change this directory in the settings UI.

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

Component: Untriaged → Enterprise Policies

I was able to reproduce what Pascal Reintjens, mentioned on description on Win11x64 using FF build 124.0, but we still need engineering input on this.
Mike Kaply, can you please express the expected behavior on this issue? Thank you.

Flags: needinfo?(mozilla)

Is clicking on the browser button not working?

Flags: needinfo?(mozilla)

I hope it's fine that I respond.
The whole row "Save files to" including the "Browse..." Button gets greyed out, so the user can't click the button.

Flags: needinfo?(mozilla)

OK, I'll take a look.

Flags: needinfo?(mozilla)

So it looks this was regressed in 2022 and wasn't caught.

The behavior in prefs was changed to lock everything when browser.download.folderList was locked.

Keywords: regression
Regressed by: 1762775
Assignee: nobody → mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Set release status flags based on info from the regressing bug 1762775

Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/d91454921bde
Don't set/lock folderList when download dir is set. r=kcochrane
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

The patch landed in nightly and beta is affected.
:mkaply, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox125 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mozilla)

ESR also :)

I usually let stuff like this ride the train and do ESR then, but it's so minor, probably worth doing.

Flags: needinfo?(mozilla)
Attachment #9395161 - Flags: approval-mozilla-beta?
Attachment #9395162 - Flags: approval-mozilla-esr115?

beta Uplift Approval Request

  • User impact if declined: UI locked when it shoudn't be
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/a
  • Risk associated with taking this patch: Low/None
  • Explanation of risk level: Removes unneeded code in policy
  • String changes made/needed: None
  • Is Android affected?: no

esr115 Uplift Approval Request

  • User impact if declined: Pref is locked unnecesarily
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low/none
  • Explanation of risk level: Removal of unneded line in policy
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9395161 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9395162 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: