Recommendation URL defaults to Manifest v3
Background
In EWE 0.7.0 a breaking change was introduced that changed Recommendation.url to refer to the URL of the Manifest v3 URL instead of the one for Manifest v2. This means that consumers cannot use the API the same way under both Manifest versions, because in order to find the appropriate recommendation URL, they are expected to use Recommendation .mv2URL under Manifest v2 and otherwise Recommendation.url.
On another note, while this breaking change was clearly mentioned in the 0.7.0 release notes, it was misunderstood during the integration of that version into Adblock Plus, which has led to various problems throughout the extension (see comment, comment, etc.). Instead of
In MV3,
subscriptions.getRecommendations()will return subscriptions with a MV3 appropriate URL, which is likely different from the one in MV2.
something along the lines of
Recommendation.urlcorresponds to Manifest v3 filter list (useRecommendation.mv2URLinstead under Manifest v2)
or
In Manifest v2, use
Recommendation.mv2URLinstead ofRecommendation.url
could have made this a bit clearer, since the breaking change wasn't about subscriptions.getRecommendations() under Manifest v3.
Use case
Use EWE's API the same way under both Manifest versions.
What to change
Remove Recommendation.mv2URL and adjust Recommendation.url to return the URL of the filter list that corresponds to the Manifest version.
Release notes
-
Release notes added