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
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 | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Depends on D46019
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D46021
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D46023
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D46024
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D46025
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Comment 10•5 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•5 years ago
|
Comment 11•5 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•5 years ago
|
||
Updated•5 years ago
|
Description
•