Skip to content

Update uBlock Origin

grant requested to merge update/ublock-origin into develop

This MR updates uBlock Origin to the latest release version, fixing #100 (closed)

Additionally (and perhaps more importantly), it refactors how uBlock Origin is installed.

Previously, we were depending on the geckoview runtime to succeed in unpacking and installing it from a zipped XPI file. I've noticed that this is extremely unreliable (or very very slow).

Instead, I've decided that we should just unzip the XPI ourselves with gradle prior to building and bundle that with the assets. This is done automatically when running gradle sync (as dependency for the mergeDebugAssets task). Then, uBlock is installed by the WebExtensionRuntime just like the other two built-in extensions, which is very reliable and fast. Also note, the unzipped is only 10MB larger than the zipped one.

@sphalt2 and @TaslimOseni, please take note of this change, since it could affect your builds once it is merged (though hopefully, the unzipping by gradle will work flawlessly).

Merge request reports