Closed Bug 1785278 Opened 2 years ago Closed 2 years ago

AutoConfig in Snap and Flatpak

Categories

(Core :: AutoConfig (Mission Control Desktop), defect, P3)

Firefox 103
defect

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: simmo.saan, Assigned: gerard-majax)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

Steps to reproduce:

Followed https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig to set up /usr/lib/firefox/firefox.cfg before Ubuntu 22.04 upgrade changed it to the snap version.

Actual results:

Previously set up AutoConfig is ignored.

Expected results:

AutoConfig should also work with the snap version.
According to https://forum.snapcraft.io/t/firefox-snap-no-longer-reads-usr-lib-firefox-for-customization/29713/20 it works for policies. If /usr/lib/firefox is not an acceptable place for such modifications, then some other path should be allowed for AutoConfig in snap.

The severity field is not set for this bug.
:gerard-majax, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lissyx+mozillians)
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(lissyx+mozillians)
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Blocks: snap

The severity field is not set for this bug.
:gerard-majax, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lissyx+mozillians)

So one thing I always wanted was to set a path for autoconfig and read it from there.

Something like that would fix this (you could just put the file in a place that could be read by the Snap.)

Assignee: nobody → mozilla
Severity: -- → S3
Component: Third Party Packaging → AutoConfig (Mission Control Desktop)
Priority: -- → P3
Product: Firefox Build System → Core
Flags: needinfo?(lissyx+mozillians)
Assignee: mozilla → lissyx+mozillians

So we are going to support reading AutoConfig file from more than NS_GRE_DIR, i.e., /etc/firefox/

Attachment #9298028 - Attachment description: WIP: Bug 1785278 - Reading AutoConfig from /etc/firefox when running under Snap → Bug 1785278 - Reading AutoConfig from /etc/firefox when running under Snap r?mkaply!,#xpcom-reviewers
Attachment #9298028 - Attachment description: Bug 1785278 - Reading AutoConfig from /etc/firefox when running under Snap r?mkaply!,#xpcom-reviewers → Bug 1785278 - Reading AutoConfig from /etc/firefox when running under Snap r?mkaply!,#xpcom-reviewers!

Mike, do you think we need the same for Flatpak?

Flags: needinfo?(mozilla)

Yes, probably. Should we do it in here or a separate bug?

Ideally we would have a way to check if we are in a package generically.

Flags: needinfo?(mozilla)
See Also: → 1170092
Blocks: flatpak
Summary: AutoConfig in snap → AutoConfig in Snap and Flatpak
Depends on: 1682462
Blocks: 1795998
No longer depends on: 1682462
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b454b0f9d420 Reading AutoConfig from /etc/firefox when running under Snap r=mkaply,xpcom-reviewers,barret
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1800857

Hey guys, isn't this a hack to bypass administrator system policies? Setting MOZ_SYSTEM_DIR to my own directory ignores the policies in /etc/firefox for example. That's not good I presume.

Flags: needinfo?(mozilla)

Yeah, that policy change didn't need to be in the patch. I'll open a new bug.

Flags: needinfo?(mozilla)

Could you please post link to the new bug?

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

Attachment

General

Creator:
Created:
Updated:
Size: