summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/parent/ext-declarativeNetRequest.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/extensions/parent/ext-declarativeNetRequest.js
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/extensions/parent/ext-declarativeNetRequest.js')
-rw-r--r--toolkit/components/extensions/parent/ext-declarativeNetRequest.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/toolkit/components/extensions/parent/ext-declarativeNetRequest.js b/toolkit/components/extensions/parent/ext-declarativeNetRequest.js
index fab1d941a4..2ca66cd1d4 100644
--- a/toolkit/components/extensions/parent/ext-declarativeNetRequest.js
+++ b/toolkit/components/extensions/parent/ext-declarativeNetRequest.js
@@ -92,17 +92,21 @@ this.declarativeNetRequest = class extends ExtensionAPI {
});
},
- async getDynamicRules() {
+ async getDynamicRules(details) {
await ExtensionDNR.ensureInitialized(extension);
- return ExtensionDNR.getRuleManager(extension).getDynamicRules();
+ return ExtensionDNR.getRuleManager(extension).getDynamicRules(
+ details?.ruleIds
+ );
},
- getSessionRules() {
+ getSessionRules(details) {
// ruleManager.getSessionRules() returns an array of Rule instances.
// When these are structurally cloned (to send them to the child),
// the enumerable public fields of the class instances are copied to
// plain objects, as desired.
- return ExtensionDNR.getRuleManager(extension).getSessionRules();
+ return ExtensionDNR.getRuleManager(extension).getSessionRules(
+ details?.ruleIds
+ );
},
isRegexSupported(regexOptions) {