Explicitly set extensions.htmlaboutaddons.recommendations.enabled=false in discopane tests
Categories
(Toolkit :: Add-ons Manager, task, P1)
Tracking
()
People
(Reporter: robwu, Assigned: robwu)
References
Details
Attachments
(1 file)
The HTML discopane (bug 1546248) and the extension recommendations (bug 1550911) share the same internal logic for retrieving recommended extensions.
Tests that mock the discovery API (by assigning the URL of a test server to extensions.getAddons.discovery.api_url
) should ensure that only one of the two is enabled. Otherwise an unexpected request can be triggered from a recommended extension section when the extension list view is opened, which causes a test to fail.
An example of a failing test is browser_html_discover_view_prefs.js
. The test confirms that the discovery API isn't requested when the discovery pane is disabled. When the discopane is disabled, the next default view is the extension list. In XUL about:addons
, there are no recommendations. However, when HTML about:addons
is enabled, the test fails because of an unexpected request from the recommended extension section of the list view.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Comment 4•5 years ago
|
||
bugherder uplift |
Description
•