Open Bug 1532774 Opened 6 years ago Updated 2 years ago

When in PPB exit early without permission

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: mixedpuppy, Unassigned)

References

(Blocks 1 open bug)

Details

We had code to exit early if extensions did not have permission to run in PPB. It's not necessary, but was a shortcut. Unfortunately, experimental APIs we load for test infra depend on a quirk related to this.

The shortcut was backed out in https://phabricator.services.mozilla.com/D22170

notes for later:

  • Our test infra builds with Cu.isInAutomation which sets AddonManager.ALLOW_LEGACY_EXTENSIONS.
  • That leads us to Extension.experimentsAllowed.
  • special-powers loads an experimental api to boostrap test code.
  • This depends on extension startup, which we bypassed becuase special-powers is not privileged.

https://searchfox.org/mozilla-central/rev/3e0f1d95fcf8832413457e3bec802113bdd1f8e8/toolkit/components/extensions/Extension.jsm#1585

Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.