Closed Bug 1580561 Opened 2 years ago Closed 1 year ago

Extend mozAddonManager API to allow AMO to handoff abuse reports to the integrated abuse report panel


(Toolkit :: Add-ons Manager, enhancement, P1)




Tracking Status
firefox71 --- verified


(Reporter: rpl, Assigned: rpl)




(7 files)

As part of Bug 1561022 ("handing off AMO abuse report flow to Firefox about:addons") we need to be extend the mozAddonManager API to allow AMO to ask Firefox to open the abuse report panel integrated into Firefox.

The currently identified additions:

  • navigator.mozAddonManager.abuseReportPanelEnabled

    • A read-only boolean attribute, to be used by AMO to detect if a Firefox instance supports the abuse report handoff and it is currently enabled
  • Promise<bool> navigator.mozAddonManager.reportAbuse(addonId)

    • A new method defined on the amWebAPI AddonManager object, to be used by AMO to start an abuse report flow on both installed or not-installed extension.
    • Firefox will check if the addonId is from an installed extension:
      • If the extension is already installed, the addon metadata is available locally
      • If the extension is not installed, the addon metadata will be retrieved from AMO (using the AMO /api/v4/addons/addon/ API endpoint)
    • Returns a promise that resolves to a boolean:
      • true if the report has been submitted successfully
      • false if the user cancelled the report.
    • Rejects to an error when Firefox fails to open an abuse report panel or fails to submit the report successfully
Assignee: nobody → lgreco
Blocks: 1561022
Priority: -- → P1
Comment on attachment 9093569 [details]

Hi Chris,
the data review request attached to this bug is not exactly about a new data collection, it is related to some updates applied on an existing one (introduced in Bug 1544927), and so this new request just mentions what kind of changes we are applying in the attached patches and why (and also what is unchanged from Bug 1544927 data review request).

(The patches relevant/related to this data review request are [D46024]( and [D46201](
Attachment #9093569 - Flags: data-review?(chutten)
Comment on attachment 9093569 [details]


    Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes. This collection is Telemetry so is documented in its definitions file [Events.yaml]( and the [Probe Dictionary](

    Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

    If the request is for permanent data collection, is there someone who will monitor the data over time?

No. This collection will expire in Firefox 73.

    Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction.

    Is the data collection request for default-on or default-off?

Default on for all channels.

    Does the instrumentation include the addition of any new identifiers?


    Is the data collection covered by the existing Firefox privacy notice?


    Does there need to be a check-in in the future to determine whether to renew the data?

Yes. Luca is responsible for renewing or removing the collection before it expires in Firefox 73.

Result: datareview+
Attachment #9093569 - Flags: data-review?(chutten) → data-review+
Depends on: 1580554
Pushed by
Part 1: AbuseReporter should retrieve the addon details from AMO for non installed addons. r=mixedpuppy
Part 1a: Add test case for the AMO details used by the abuse report panel. r=mixedpuppy
Part 1b: Add new abuse report errors types in the telemetry event definition. r=janerik
Part 2: Extend mozAddonManager API to allow AMO to handoff reports to the integrated abuse report panel. r=kmag,zombie,webidl,smaug
Part 2a: Add amo entry point to telemetry event definition and related test assertions. r=janerik

Verified as fixed in FF71 71.0b11 using Windows 10x64 and MacOS Catalina 10.15.

I will attach a postfix video.

Attached image Postfix video
Blocks: 1598062
You need to log in before you can comment on or make changes to this bug.