Closed Bug 1990793 Opened 11 months ago Closed 7 months ago

Live policies proper application

Categories

(Enterprise Products :: Firefox, task)

x86_64
Linux

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

53 bytes, text/x-github-pull-request
Details | Review

When live policies has been prototypes, a new observer was added EnterprisePolicies:Activate that will blindly run all policies callbacks. This may be a problem if we run them at the early startup phase before the expected observer event has been sent.

STR was:

{
    "policies": {
        "BlockAboutConfig": true,
        "DisableFirefoxScreenshots": true,
        "ExtensionSettings": {
            "{a3331e55-214f-49f8-a9d8-0ab78558885f}": {
              "installation_mode": "force_installed",
              "install_url": "https://addons.mozilla.org/firefox/downloads/file/4289501/aurora_ray_lights-1.0.xpi",
              "updates_disabled": true
            }
        }
    }
}

to serve an XPI to install. This would fail because this policy depends on onBeforeUIStartup which is run only when final-ui-startup has been received

Proper solution would be to just schedule those calls for later, when it's too early. But for later calls to apply the policy it should be fine to run directly

Attached file GitHub Pull Request
Assignee: nobody → lissyx+mozillians

This was fixed by merging this PR

Group: firefox-enterprise
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: