File custom-ubo-assets-bootstrap-location.patch of Package LibreWolf

diff --git a/toolkit/components/extensions/parent/ext-storage.js b/toolkit/components/extensions/parent/ext-storage.js
index d76fe33c06a2..e08769e4821c 100644
--- a/toolkit/components/extensions/parent/ext-storage.js
+++ b/toolkit/components/extensions/parent/ext-storage.js
@@ -408,6 +408,14 @@ this.storage = class extends ExtensionAPIPersistent {
         managed: {
           async get(keys) {
             enforceNoTemporaryAddon(extension.id);
+            const assetsBootstrapLocation = Services.prefs.getStringPref("librewolf.uBO.assetsBootstrapLocation", undefined);
+            if (extension.id == "uBlock0@raymondhill.net" && assetsBootstrapLocation) {
+              return {
+                adminSettings: {
+                  assetsBootstrapLocation
+                }
+              }
+            }
             let data = await getManagedStorageManifestData(extension, context);
             return ExtensionStorage._filterProperties(extension.id, data, keys);
           },
openSUSE Build Service is sponsored by