mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02:00
Do not always convert removed stock list into imported list
If the removed stock list is labelled a "bad list", do not convert it into an imported list. This will allow to seamlessly merge resource-abuse stock list with privacy stock list when 1.42.0 is widespread.
This commit is contained in:
parent
53a0d1ec5f
commit
34cca8349b
@ -645,7 +645,8 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||
io.registerAssetSource(listKey, entry);
|
||||
}
|
||||
|
||||
// Convert a no longer existing stock list into an imported list.
|
||||
// Convert a no longer existing stock list into an imported list, except
|
||||
// when the removed stock list is deemed a "bad list".
|
||||
const customListFromStockList = assetKey => {
|
||||
const oldEntry = oldAvailableLists[assetKey];
|
||||
if ( oldEntry === undefined || oldEntry.off === true ) { return; }
|
||||
@ -653,6 +654,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||
if ( Array.isArray(listURL) ) {
|
||||
listURL = listURL[0];
|
||||
}
|
||||
if ( this.badLists.has(listURL) ) { return; }
|
||||
const newEntry = {
|
||||
content: 'filters',
|
||||
contentURL: listURL,
|
||||
|
Loading…
Reference in New Issue
Block a user