mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
2b34aeea5d
Signed-off-by: Leah Rowe <leah@libreboot.org>
41 lines
1.7 KiB
Diff
41 lines
1.7 KiB
Diff
From 9d67e4bd2a45975b777a1f798a2b05cd0e7a9d6e Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:09:24 +0100
|
|
Subject: [PATCH 06/52] custom-ubo-assets-bootstrap-location.patch
|
|
|
|
---
|
|
.../components/extensions/parent/ext-storage.js | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
|
|
diff --git a/toolkit/components/extensions/parent/ext-storage.js b/toolkit/components/extensions/parent/ext-storage.js
|
|
index 0d6109c25019..3dce60b6d5ec 100644
|
|
--- a/toolkit/components/extensions/parent/ext-storage.js
|
|
+++ b/toolkit/components/extensions/parent/ext-storage.js
|
|
@@ -411,6 +411,23 @@ 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) {
|
|
+ let data = {};
|
|
+ try {
|
|
+ let manifestData = await getManagedStorageManifestData(extension, context);
|
|
+ data = await ExtensionStorage._filterProperties(extension.id, manifestData, keys);
|
|
+ } catch (e) {
|
|
+ // no managed manifest
|
|
+ }
|
|
+ return {
|
|
+ ...data,
|
|
+ adminSettings: { ...(data.adminSettings || {}), assetsBootstrapLocation },
|
|
+ };
|
|
+ }
|
|
let data = await getManagedStorageManifestData(extension, context);
|
|
return ExtensionStorage._filterProperties(extension.id, data, keys);
|
|
},
|
|
--
|
|
2.47.3
|
|
|