Extend mozAddonManager API to allow AMO to handoff abuse reports to the integrated abuse report panel
Categories
(Toolkit :: Add-ons Manager, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | verified |
People
(Reporter: rpl, Assigned: rpl)
References
Details
Attachments
(7 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
3.39 KB,
text/plain
|
chutten
:
data-review+
|
Details |
|
1.11 MB,
image/gif
|
Details |
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
addonIdis 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 | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
Depends on D46019
| Assignee | ||
Comment 2•7 years ago
|
||
Depends on D46021
| Assignee | ||
Comment 3•7 years ago
|
||
Depends on D46023
| Assignee | ||
Comment 4•7 years ago
|
||
Depends on D46024
| Assignee | ||
Comment 5•7 years ago
|
||
Depends on D46025
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment 10•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fcdbfc80be95
https://hg.mozilla.org/mozilla-central/rev/46c630c56f32
https://hg.mozilla.org/mozilla-central/rev/3b72d59e4318
https://hg.mozilla.org/mozilla-central/rev/55e2f4fa70b5
https://hg.mozilla.org/mozilla-central/rev/efcaa196ab66
| Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Verified as fixed in FF71 71.0b11 using Windows 10x64 and MacOS Catalina 10.15.
I will attach a postfix video.
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Description
•