Closed Bug 1675858 Opened 5 years ago Closed 4 years ago

Misleading log: Reading manifest: Invalid extension permission: geckoViewAddons

Categories

(WebExtensions :: General, task, P3)

task

Tracking

(firefox85 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: agi, Assigned: rpl)

References

Details

Attachments

(2 files)

When running a privileged extension with the geckoViewAddons we get this log statement:

Reading manifest: Invalid extension permission: geckoViewAddons

Even though the permission is applied and everything works correctly. We should remove it since it's very confusing to embedders.

This is not specific to Android actually, it happens for all privileged permissions (including mozillaAddons)

Component: Android → General

Luca will look into doing something about this. It's harmless but annoying.

Severity: -- → N/A
Flags: needinfo?(lgreco)
Priority: -- → P3
Assignee: nobody → lgreco
Status: NEW → ASSIGNED

Attached a patch which includes:

  • some small enough changes to prevent the invalid permission warning to be collected while loading the manifest (when the manifest is parsed by a plain ExtensionData instance, as used in XPIProvider to load and parse the manifest).
  • still collect and log as expected the invalid permission warning for the privileged permission when the manifest is being parsed by the Extension class instance
  • new test coverage to cover the behavior expected by a ExtensionData class instance and a privileged and non privileged Extension class instances

Pushed to try to double-check that none of the existing tests did break with the changes applied:

Flags: needinfo?(lgreco)
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/75fa36750ac3 Skip misleading invalid permission warning for privileged permissions while loading manifest from ExtensionData instances. r=mixedpuppy https://hg.mozilla.org/integration/autoland/rev/18fcdf3ec3f6 Remove misleading obsolete inline comment from Extension.jsm. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Depends on: 1734987
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: