summaryrefslogtreecommitdiff
path: root/custom-ubo-assets-bootstrap-location.patch
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-07-03 09:04:13 -0400
committerB. Stack <bgstack15@gmail.com>2022-07-03 09:04:13 -0400
commit28132e774478bb632672ff04958b1cfc1a464da8 (patch)
tree39176f6b62dfa11d262572e44ae9c07dc553cdc5 /custom-ubo-assets-bootstrap-location.patch
parentMerge branch 'rawhide' of ssh://pkgs.fedoraproject.org/rpms/firefox into rawhide (diff)
downloadlibrewolf-fedora-ff-b102.0.tar.gz
librewolf-fedora-ff-b102.0.tar.bz2
librewolf-fedora-ff-b102.0.zip
v102.0 rc1b102.0
Diffstat (limited to 'custom-ubo-assets-bootstrap-location.patch')
-rw-r--r--custom-ubo-assets-bootstrap-location.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/custom-ubo-assets-bootstrap-location.patch b/custom-ubo-assets-bootstrap-location.patch
new file mode 100644
index 0000000..81a703f
--- /dev/null
+++ b/custom-ubo-assets-bootstrap-location.patch
@@ -0,0 +1,17 @@
+--- a/toolkit/components/extensions/parent/ext-storage.js
++++ b/toolkit/components/extensions/parent/ext-storage.js
+@@ -177,6 +177,14 @@ this.storage = class extends ExtensionAPI {
+
+ let data = await lookup;
+ if (!data) {
++ const assetsBootstrapLocation = Services.prefs.getStringPref("librewolf.uBO.assetsBootstrapLocation", undefined);
++ if (extension.id == "uBlock0@raymondhill.net" && assetsBootstrapLocation) {
++ return {
++ adminSettings: {
++ assetsBootstrapLocation
++ }
++ }
++ }
+ return Promise.reject({
+ message: "Managed storage manifest not found",
+ });
bgstack15