Bug 1822640 - Disable the abuse report feature on mobile. r=rpl,geckoview-reviewers,amejiamarmol

Depends on D179968

Differential Revision: https://phabricator.services.mozilla.com/D185277
This commit is contained in:
William Durand 2023-08-03 18:38:02 +00:00
parent bec83a817f
commit 7bf910442f
2 changed files with 8 additions and 0 deletions

View File

@ -115,6 +115,9 @@ pref("extensions.webextOptionalPermissionPrompts", true);
pref("extensions.experiments.enabled", false);
/* The abuse report feature needs some UI that we do not have on mobile. */
pref("extensions.abuseReport.amWebAPI.enabled", false);
/* block popups by default, and notify the user about blocked popups */
pref("dom.disable_open_during_load", true);
pref("privacy.popups.showBrowserMessage", true);

View File

@ -3032,6 +3032,11 @@ class WebExtensionTest : BaseSessionTest() {
mainSession.evaluateJS("typeof navigator.mozAddonManager") as String,
equalTo("object"),
)
assertThat(
"mozAddonManager.abuseReportPanelEnabled should be false",
mainSession.evaluateJS("navigator.mozAddonManager.abuseReportPanelEnabled") as Boolean,
equalTo(false),
)
// Install an add-on, then assert results got from `mozAddonManager.getAddonByID()`.
var addonId = ""