1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Remove obsolete ublock-resources-related code

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/679
This commit is contained in:
Raymond Hill 2019-07-21 11:00:14 -04:00
parent e1dd7f7043
commit 48347897ad
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 1 additions and 22 deletions

View File

@ -930,22 +930,9 @@ const updaterFetched = new Set();
let updaterStatus,
updaterTimer,
updaterAssetDelay = updaterAssetDelayDefault,
noRemoteResources;
updaterAssetDelay = updaterAssetDelayDefault;
const updateFirst = function() {
// https://github.com/gorhill/uBlock/commit/126110c9a0a0630cd556f5cb215422296a961029
// Firefox extension reviewers do not want uBO/webext to fetch its own
// scriptlets/resources asset from the project's own repo (github.com).
// https://github.com/uBlockOrigin/uAssets/issues/1647#issuecomment-371456830
// Allow self-hosted dev build to update: if update_url is present but
// null, assume the extension is hosted on AMO.
if ( noRemoteResources === undefined ) {
noRemoteResources =
vAPI.webextFlavor.soup.has('firefox') &&
vAPI.webextFlavor.soup.has('webext') &&
vAPI.webextFlavor.soup.has('devbuild') === false;
}
updaterStatus = 'updating';
updaterFetched.clear();
updaterUpdated.length = 0;
@ -977,10 +964,6 @@ const updateNext = function() {
) {
continue;
}
// Update of user scripts/resources forbidden?
if ( assetKey === 'ublock-resources' && noRemoteResources ) {
continue;
}
if (
fireNotification(
'before-asset-updated',

View File

@ -1330,10 +1330,6 @@
return;
}
}
// This asset is deprecated.
if ( details.assetKey === 'ublock-resources' ) {
return;
}
return true;
}