mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-06-11 09:44:46 -04:00
48 lines
2.1 KiB
Diff
48 lines
2.1 KiB
Diff
From 3847b868839f795d0e29a6f70682070ac2804df8 Mon Sep 17 00:00:00 2001
|
|
From: Akash Yadav <itsaky01@gmail.com>
|
|
Date: Mon, 28 Apr 2025 11:40:21 +0530
|
|
Subject: [PATCH] fix(patches): update 'ublock-assets.patch' for
|
|
'FIREFOX_138_0_BUILD1'
|
|
|
|
Signed-off-by: Akash Yadav <itsaky01@gmail.com>
|
|
---
|
|
toolkit/components/extensions/NativeManifests.sys.mjs | 2 +-
|
|
toolkit/components/extensions/parent/ext-storage.js | 8 ++++++++
|
|
2 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/toolkit/components/extensions/NativeManifests.sys.mjs b/toolkit/components/extensions/NativeManifests.sys.mjs
|
|
index ef3d1152ff..ca88c38529 100644
|
|
--- a/toolkit/components/extensions/NativeManifests.sys.mjs
|
|
+++ b/toolkit/components/extensions/NativeManifests.sys.mjs
|
|
@@ -36,7 +36,7 @@ export var NativeManifests = {
|
|
let platform = AppConstants.platform;
|
|
if (platform == "win") {
|
|
this._lookup = this._winLookup;
|
|
- } else if (platform == "macosx" || platform == "linux") {
|
|
+ } else if (platform == "macosx" || platform == "linux" || platform == "android") {
|
|
let dirs = [
|
|
Services.dirsvc.get("XREUserNativeManifests", Ci.nsIFile).path,
|
|
Services.dirsvc.get("XRESysNativeManifests", Ci.nsIFile).path,
|
|
diff --git a/toolkit/components/extensions/parent/ext-storage.js b/toolkit/components/extensions/parent/ext-storage.js
|
|
index 61eb0fb48e..ecdd2bae9a 100644
|
|
--- a/toolkit/components/extensions/parent/ext-storage.js
|
|
+++ b/toolkit/components/extensions/parent/ext-storage.js
|
|
@@ -391,6 +391,14 @@ this.storage = class extends ExtensionAPIPersistent {
|
|
|
|
let data = await lookup;
|
|
if (!data) {
|
|
+ const assetsBootstrapLocation = Services.prefs.getStringPref("browser.ironfox.uBO.assetsBootstrapLocation", undefined);
|
|
+ if (extension.id == "uBlock0@raymondhill.net" && assetsBootstrapLocation) {
|
|
+ return {
|
|
+ adminSettings: {
|
|
+ assetsBootstrapLocation
|
|
+ }
|
|
+ }
|
|
+ }
|
|
return Promise.reject({
|
|
message: "Managed storage manifest not found",
|
|
});
|
|
--
|
|
2.49.0
|
|
|