Remove references to extensions.webservice.discoverURL
Categories
(Toolkit :: Add-ons Manager, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: mstriemer, Assigned: gaurijove)
References
Details
Attachments
(1 file)
Bug 1544011 removed the last place we checked the extensions.webservice.discoverURL
pref, but it was already not doing anything.
All references to this pref can be removed now. The const defined in head.js leads to browser_history_navigation.js. That file can have the MAIN_URL const removed along with the url argument from the is_in_discover helper.
https://searchfox.org/mozilla-central/search?q=extensions.webservice.discoverURL
Comment 1•5 years ago
|
||
This is not some trivial removal, some attention must be paid to the CSP directives. I'll take over this bug since I know the context of these.
Assignee | ||
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
Mark, what is the last Firefox release which actually handled that preference? I'm asking in regards of the Marionette changes in the patch given that we have to keep some backward compatibility for geckodriver and older Firefox releases. Currently our minimum version of Firefox, which we support, is 60.0ESR.
Reporter | ||
Comment 5•5 years ago
|
||
I think 68 would've been the first version that didn't use it by default, but it was probably still supported by flipping some prefs at that point. I guess when Thunderbird had to change, Rob? Do you recall when that happened?
Comment 6•5 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #4)
Mark, what is the last Firefox release which actually handled that preference?
- Firefox 73 removed support for the feature (bug 1337627).
- Firefox 69 stopped using the feature by default (bug 1555012).
I'm asking in regards of the Marionette changes in the patch given that we have to keep some backward compatibility for geckodriver and older Firefox releases. Currently our minimum version of Firefox, which we support, is 60.0ESR.
To prevent about:addons
from triggering network activity, extensions.getAddons.discovery.api_url
should be set, e.g. to data:,
(an empty data:-URL).
Comment 7•5 years ago
|
||
Thanks Rob! Note that we won't need that fallback for Puppeteer and Marionette/geckodriver by default. Puppeteer and geckodriver are targeted for content related automation purposes, and Marionette lives in-tree and right now we don't have tests that open about:addons
.
Comment 8•5 years ago
|
||
Would you rather remove the pref or keep the new pref?
The current version of the patch has the correct preference (to disable network activity on about:addons
).
Comment 9•5 years ago
|
||
It's ok to keep the pref for now given that it doesn't hurt us and gives less risk for side-effects. We can check later to remove it ourselves.
Comment 10•5 years ago
|
||
I tried to land the patch, but got the following:
Details: We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
applying /tmp/tmpXw2sSL
toolkit/mozapps/extensions/test/browser/browser_history_navigation.js
Hunk #1 FAILED at 18.
1 out of 6 hunks FAILED -- saving rejects to file toolkit/mozapps/extensions/test/browser/browser_history_navigation.js.rej
abort: patch command failed: exited with status 256
Comment 11•5 years ago
|
||
Jayati, please see the last comment. Your patch needs to be rebased against central. Thanks.
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
Description
•