Still try to load filter lists after fatal error at launch

Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/817#issuecomment-565730122

In case of a fatal error at launch, the loading of filter lists
could be skipped. With this commit uBO will still try to load
the filter lists, at least the default ones if no valid selfie
is present.
This commit is contained in:
Raymond Hill 2019-12-14 11:14:00 -05:00
parent 4e52efa9be
commit 1bb524d12b
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -286,7 +286,14 @@ try {
log.info(`PSL ready ${Date.now()-vAPI.T0} ms after launch`);
}),
]);
} catch (ex) {
console.trace(ex);
}
// https://github.com/uBlockOrigin/uBlock-issues/issues/817#issuecomment-565730122
// Still try to load filter lists regardless of whether a serious error
// occurred in the previous initialization steps.
try {
const selfieIsValid = await µb.selfieManager.load();
if ( selfieIsValid === true ) {
log.info(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);