Closed Bug 1644214 Opened 6 years ago Closed 2 years ago

Extension Policy doesn't reinstall extension

Categories

(Firefox :: Enterprise Policies, defect, P3)

All
macOS
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr78 --- affected
firefox78 --- affected
firefox79 --- affected

People

(Reporter: mczack, Unassigned)

Details

Attachments

(1 file)

1.50 KB, application/x-apple-aspen-config
Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

Installed Policy (configuration profile [attached]) via ConfigurationProfile.
Restarted Firefox.
Extension installed no problem.
Removed Policy.
Restarted Firefox.
Extension was left installed.
Removed extension.
Re-installed Policy
Extension setting shows in about:policy but is not reinstalled.

Actual results:

Extension was not removed with Policy and not reinstalled with Policy.

Expected results:

Extension should have removed with Policy and reinstalled with Policy.

Was also found that there is a line in the users profile (~Library/Application Support/Firefox/Profiles/gctfxded.default-esr/prefs.js)
"user_pref("browser.policies.runOncePerModification.extensionsInstall", "[\"https://browser-plugin.amazon-corp.com/bravehearts/extensions/firefox.xpi\"]”);" that is not removed when the policy is removed off device. It creates a situation that when the policy is reinstalled, that line is still in the users prefs.js and thus it doesn't actually install the extension again.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Product: Firefox → WebExtensions
Component: Untriaged → Enterprise Policies
Product: WebExtensions → Firefox

I can reproduce this behavior using macOS 10.13 on:

Firefox 79.0b7 (BuildId:20200710175519)
Firefox 78.0.2 (BuildId:20200708170202)
Firefox 78.0.2esr (BuildId:20200708170510)

I would like to get Mike's input on this one.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Flags: needinfo?(mozilla)
OS: Unspecified → macOS
Hardware: Unspecified → All
Version: 76 Branch → Trunk

The original implementation of the Extensions policies had a lot of problems (as you are seeing).

We created the new ExtensionSettings policy to try to overcome a lot of these:

https://github.com/mozilla/policy-templates/blob/master/README.md#extensionsettings

So I would recommend using that if you can.

That being said, we should be able to detect the uninstall of the extension and remove it from the runOnce list.

Severity: -- → S3
Flags: needinfo?(mozilla)
Priority: -- → P3

We're not going to fix these as we're recommending people use ExtensionSettings.

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

Attachment

General

Creator:
Created:
Updated:
Size: